Question: Demonstrate how a class hierarchy is to be created containing the following classes: An employee having first name, last name and social security number A
Demonstrate how a class hierarchy is to be created containing the following classes:
- An employee having first name, last name and social security number
- A salaried employee having a monthly salary
- A commission employee having monthly total sales and commission rate
- Bases on the above information, devise a suitable class hierarchy to model the presented employees. You should also clearly identify which data items each object will store and the likely methods. Finally, you should also justify your design decisions. Write a program to implement the design.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
