Last active
August 14, 2025 03:34
-
-
Save b4iterdev/10ffe54ef17450e3b0d13e62788a0d1c to your computer and use it in GitHub Desktop.
UML_Diagram_HRManagement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| interface Payable { | |
| +calculateSalary(): double | |
| } | |
| abstract class Employee { | |
| -id: String | |
| -name: String | |
| +getId(): String | |
| +setId(id: String): void | |
| +getName(): String | |
| +setName(name: String): void | |
| +getAge(): int | |
| +setAge(age: int): void | |
| +getPhone(): String | |
| +setPhone(phone: String): void | |
| +getEmail(): String | |
| +setEmail(email: String): void | |
| +toString(): String | |
| +calculateSalary(): double | |
| } | |
| class FullTimeEmployee { | |
| -salary: double | |
| +getSalary(): double | |
| +setSalary(salary: double): void | |
| +calculateSalary(): double | |
| +toString(): String | |
| } | |
| class PartTimeEmployee { | |
| -hoursWorked: int | |
| -hourlyRate: double | |
| +getHourlyRate(): double | |
| +setHourlyRate(hourlyRate: double): void | |
| +getHoursWorked(): int | |
| +setHoursWorked(hoursWorked: int): void | |
| +calculateSalary(): double | |
| +toString(): String | |
| } | |
| Employee <|-- FullTimeEmployee | |
| Employee <|-- PartTimeEmployee | |
| Payable <|.. Employee | |
| @enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment