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 theStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started