Java computer programming question help! Thank you so much! Consider a software
ID: 3836400 • Letter: J
Question
Java computer programming question help! Thank you so much!
Consider a software that will implement the following classes: Student, Professor, Staffmember, and contractWorker. List some common attributes of these classes (list at least 4 common attributes) What would be a good abstract class (not one of the four listed) from which these classes may be extended via inheritance that would contain the common attributes? List this class and draw the inheritance hierarchy
This is not java code but a inheriance hierarchy illustration please illustrate a inheritance hierachy given the information above, bellow is a inheritance hierachy java example
Explanation / Answer
Employee class can be the abstract class of all these four classes
Employee:
- first name
-last name
- SSN
- age
These four are the common attribures for all employee type
Employee
|
---------------------------------------------------------------------------
| | | |
Student Professor Staffmember contractWorker
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.