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

PRO192_-_SU_2024_-_Block_5_-_FE_2618.webp

Kizspy | Question: 17
(Choose 1 answer)

What is the output of the following Java program?
class A { int variableOne = 100;
} class B extends A { int variable Two = 200;}
public class Main { public static void main(String[] args) { A objA = new B();System.out.println(objA.variableOne);}}
A. 100
B. 200
C. 300
D. 0
FUOVE

Thông tin

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

Share this media

Back
Bên trên Bottom