public class Text1 {
public Text1()
{
}
String text = "Why is there air?";
public String getText() {
return text;
}
}
public class Text2 extends Text1 {
public static void main(String[] args) {
Text2 t2 = new Text2();
System.out.println(t2.getText());
}
}
when compling Text2 getting error
C:\padma\test\Text2.java:1: Superclass Text1 of class Text2 not found.
public class Text2 extends Text1 {
^
1 error
Process completed with exit code 1
is their anything i am missing.
please help me in this
with regards.