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: