I did so....Jim, but related question as follows. Help me get into that.
<PRE>
public class Base extends Object { //line 1
String objType;
public Base() { objType = "I am a Base type";
}
}
public class Derived extends Base { //line 2
public Derieved() { objType = "I am Derived type";
}
public static void main(String args{}) {
Derived D = new Derived();
}
}
</PRE>
A)Two class files, Base,class and Derived.class will be created.
B)The compiler will object to line 1..........(Answer)
C)The compiler will object to line 7.
My question is the same why answer is B ?
[This message has been edited by Umesh (edited February 13, 2000).]