PRO192_-_SU_2025_-_QUIZ2_3925.webp
Hữu Vinh

PRO192_-_SU_2025_-_QUIZ2_3925.webp

Question 6
Answer saved
Flag
question
The following code will print "Derived" because the method in the subclass hides the method in the superclass.
class Base {
static void display() {
System.out.println("Base");
}
class Derived extends Base {
static void display() {
System.out.println("Derived");
}
public class Main (
public static void main(String[] args) {
Derived.display();
}
}
True
False
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Hữu Vinh
Ngày thêm
Lượt xem
376
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom