Text: Construct a UML Class Diagram of Employee based on the following specification:
Three Classes: Employee, Full-time Staff, and Part-time Staff
Class Employee:
Attributes:
- Name: String (public)
- Address: String
- ID#: String
- SSN: String
Actions:
- enterTax(): double > Takes no parameters (public)
End class Employee
Class Full-time Staff:
Attributes:
- Annual salary: float
- Health plan: string
Actions:
- selectBenefit() > Takes no parameters (public)
End class Full-time Staff
Class Part-time Staff:
Attributes:
- Hourly Rate: float
- Weekly hours: int
Actions:
- fillReport() > Takes no parameters
End Class Part-time Staff
The relationship among these three classes is that Class Employee is the generalization of Class Full-time Staff and Class Part-time Staff.