PRO192c_-_SU_2024_-_TE2_2584.webp
vanbinh99

PRO192c_-_SU_2024_-_TE2_2584.webp

Kizspy | Question: 26
(Choose 1 answer)
What is the output of the following Java program?
class Test {
void m1(String x) { System.out.println("Parent");}
}
class TestChild extends Test { public void m2(String x) { System.out.println("Child");super.m1(x);}
} public class Main {
public static void main(String[] args) { Test obj = new TestChild();if (obj instanceof TestChild) {
obj.m2("FE");
}
A. Compile error
B. Child
Parent
C. Child Child
D. Parent Parent
FUOV

Thông tin

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

Share this media

Back
Bên trên Bottom