PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

}
(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)

  • Like
Reactions: KOROKORO

Thông tin

Category
PRO192
Thêm bởi
thanhhoa88
Ngày thêm
Lượt xem
10,307
Lượt bình luận
27
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
211.1 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom