PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
successful_man

PRO192_-_SU_2023_-_Block_5_-_FE_735.webp

32
Answer (Choose 1 answer)
A. I am a student I am a student
B. I am a person I am a person
C. I am a person I am a student
D. I am a student I am a person
}

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:

Thông tin

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

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
File size
57 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom