PRO192_-_SU_2023_-_Block_5_-_2_754.webp
Minh Đức1

PRO192_-_SU_2023_-_Block_5_-_2_754.webp

(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

Thông tin

Category
PRO192
Thêm bởi
Minh Đức1
Ngày thêm
Lượt xem
3,605
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_2_754.webp
File size
48.7 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom