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
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
Get step-by-step solutions from verified subject matter experts
