(Choose 1 answer)
int type;
SpecVan() {}
SpecVan(String driver, int rate, int type) { super(driver, rate);
this.type=type;
} void display() {
String s = "("+super.toString()+","+type+") ";System.out.println(s);
}
} public class Main {
public static void main(String[] args) {
SpecVan x = new SpecVan();
SpecVan y = new SpecVan("Hoa", 20, 10);x.display(); y.display();System.out.println();
}
}
A. (unknown,5,0)(Hoa, 20,10)
B. (null,0,0)(Hoa, 20,10)
C. (null,0,5)(Hoa, 20,10)
D. (null,5,5)(Hoa, 20,10)