PRO192_-_SP_2024_-_FE_1629.webp
N

PRO192_-_SP_2024_-_FE_1629.webp

(Choose 1 answer)
Read the following Java program:
class Person {
public static void display(){
} System.out.println("I am a person");
}
class Student extends Person{
public static void display(){
System.out.println("I am a student");
}
} public class Main {
public static void main(String[] args) {
Student student = new Student();
student.display();((Person) student).display();
}
}
Which of the followings is the program output:
A. I am a person I am a person
B. I am a person I am a student
C. I am a student I am a person
D. I am a student
I am a student

Iv

Exit (25

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_FE_1629.webp
File size
73 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom