public class
Testing extends Ab
{
static int i = 200;
public static void main(
String argv[])
{
Testing p = new Testing();
System.out.println(i);
}
}
public class Ab{
Ab(){
int i = 100;
System.out.println(i);
}
}
Why I am getting compiler error that Public Ab should be defined in Ab.java file. I am sure I am missing something very simple but please help, unable to understand.
Thanks
Jyotsna