Your selection (1 -> 3):
3
Enter the number of teachers: 3
Enter teacher 1
Enter name: Nguyen Van B
Enter age: 23 Enter class: SE1322
Enter teacher 2
Enter name: Tran Thi C
Enter age: 27
Enter class: SE1501
Enter teacher 3
Enter name: Nguyen The A
Enter age: 22
Enter class: SE1501
OUTPUT
Teacher 1
Nguyen The A
22
SE1501
Teacher 2
Nguyen Van B
23
SE1322 Teacher 3
Tran Thi C
27
SE1501
4. Write a new class professor to inherit the class teacher, add an attributed address, and write a getter and setter method for the new class. Finally, write a method display info() to print information. (1 point)
+ 95%
Zoom
Close