PRO192_-_SU_2024_-_Block_5_-_FE_2618.webp
Quốc Hùng2

PRO192_-_SU_2024_-_Block_5_-_FE_2618.webp

Kizspy | Question: 22
(Choose 1 answer)
What is the output of the following Java program?class A {
void displayMessage() { System.out.println("A Display");}
}
class B extends A { @Override
void displayMessage() { System.out.println("B Display");}
} public class Main {
public static void main(String[] args) { A objA = new B();objA.displayMessage();
}
}
A. B Display
B. A Display
C. A Display B Display
D. Compile error
FUOV

Thông tin

Category
PRO192
Thêm bởi
Quốc Hùng2
Ngày thêm
Lượt xem
3,410
Lượt bình luận
19
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom