Question: TASK2:Make a main class and create instances of class Person, Student and Instructor created in TASK 1. Call toString() method of each instance. TASK 3:

TASK2:Make a main class and create instances of class Person, Student andTASK2:Make a main class and create instances of class Person, Student

and Instructor created in TASK 1. Call toString() method of each instance.

TASK 3: Change major of Student instance declared in TASK 2 also

calculate its new CGPA. Change Contact number and address of Instructor,

created in TASK2. Display data before and after change.

TASK 4: Make a main class and create instances of class Employee,

FullTimeEmployee and PartTimeEmployee created in TASK 1. Call

toString() method of each instance.

TASK 5: Change timings of PartTimeEmployee instance declared in TASK

4. Change Contact number and address of FullTimeEmployee, created in

TASK 4. Display data before and after change.

TASK 1: Make classes in following hierarchical order by using inheritance as defined in UML Diagram below. Note: Parameters of constructors in each class are not defined in the

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!