PRO192_-_FA_2024_-_RE_3069.webp
Nitta93

PRO192_-_FA_2024_-_RE_3069.webp

  • Media owner Nitta93
  • Ngày thêm
Kizspy | Question: 33
(Choose 1 answer)
class A{
What is the output of the following Java program?
int i = 100;
public void printValue(){
System.out.print("A");
}
}
class B extends A{
int i = 120;
public void printValue(){}System.out.print("B");
}
FUOV
}
public class Main{
public static void main(String args[]){
A a = new B();a.printValue();
System.out.print(a.i);
}
A. B100
B. B120
C. A100
D. A120

Thông tin

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

Share this media

Back
Bên trên Bottom