(Choose 1 answer)
What is the output of the following program?
class Van {
String driver; int rate;
Van() { driver="unknown"; rate = 5; }
Van(String driver, int rate) {
this.driver-driver; this.rate-rate;
} public String toString() {return(driver+","+rate);}
}
class SpecVan extends Van {
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);
}
Finish
9