public class Base extends Object {
String objType;
public Base() {
objType = "I am a Base type";
}
}
class Derived extends Base {
public Derived() {
objType = "I am a Derived type";
}
public static void main(String args[]) {
Derived D = new Derived();
}
}
A. Two class files, Base.class and Derived.class, will be created.
B. The compiler will object 'public class Base extends Object {'.
C. The compiler will object 'public class Derived extends Base {'.
|