Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Construct a UML Class Diagram of Employee on the basis of the following specification: Three Classes: Employee, Fulltime Staff, and Part-time Staff Class Employee:
Construct a UML Class Diagram of Employee on the basis of the following specification: Three Classes: Employee, Fulltime Staff, and Part-time Staff Class Employee: Attributes: Name: String Address: ID#: SSN: (public) String String String Actions: reportTax(): double Takes no parameters (public) End Class Employee Class Fulltime Staff: Attributes: Annual salary: float Health plan: string Actions: selectBenefit () End Class Fulltime Staff Takes no parameters (public) Class Part-time Staff: Attributes: Hourly Rate: Weekly hours: Actions: fill Report () float int Takes no parameters End Class Part-time Staff The relationship among these three classes is that Class Employee is the generalization of Class Fulltime Staff and Class Part-time Staff.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
EMPLOYEE name String address String id ...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