}
(Choose 1 answer)
super(color, price);
}
void display() {
String s = "(" + super.toString() + "," + type + ") ";
System.out.println(s);
}
public class Main {
public static void main(String[] args) {
SpecVase x = new SpecVase();
SpecVase y = new SpecVase("Hoa", 20, 10);
x.display();
y.display();
System.out.println();
}
}
A. Compilation fails (because of incorrects in constructor of sub-class).
B. (null,5,5)
(Hoa, 20,10)
C. (null,0,5)(Hoa, 20,10)
D. (null,5,0)
(Hoa, 20,10)