Hi all...I am having a strange problem with a class I am working on...any ideas?
When I run the constructor and print targetLNK, the file path is printed correctly. However the super.toString() and super.getAbsolutePath() both come back as null. Any thoughts?
-Greg :-Q
Code:
import java.io.*;
public class Program extends File
{
Program(String targetLNK) throws Exception
{
super(targetLNK);
System.out.println(targetLNK);
System.out.println(super.toString());
System.out.println(super.getAbsolutePath());
}
}
When I run the constructor and print targetLNK, the file path is printed correctly. However the super.toString() and super.getAbsolutePath() both come back as null. Any thoughts?
-Greg :-Q