Question: Section C 1.1 Answer the following questions based on the program below. public classTesti public static void main(String] args) ( A aa-new A (3); public

 Section C 1.1 Answer the following questions based on the program

Section C 1.1 Answer the following questions based on the program below. public classTesti public static void main(String] args) ( A aa-new A (3); public class A extends BI public A (int t) System.out.println ("A's constructor is invoked") public class Bl public BO System.out.println ("B's constructor is invoked") (i What is the output of the program? (ii) Identity the superclass. (ii) Identity the subclass (3 marks) (1 marks) (1 marks) 1.2. Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasss of Employee. A person has a name, address. phoneno, and email address A student has a class status(junior, senior). An Employee has an office. salary, and date hired. A faculty member has office hours and a rank. A staff member has a title. Override the display) method in each class to display the class name and the person's name a Draw the UML diagram for the classes. (6 marks) b. Implement the classes. (10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!