Цепочка конструктора Java
class Base {
int number;
// Constructure of Base class
Base(int number) {
this.number = number;
}
}
class Derived extends Base {
// Constructure of Derived class
Derived(int number) {
// calls constructure of Base class
super(number);
}
public static void main(String args[]) {
// calls constructure of Derived class
Derived obj = new Derived(99);
}
}
Undefined