Skip to content

Instantly share code, notes, and snippets.

@b4iterdev
Last active August 14, 2025 03:34
Show Gist options
  • Select an option

  • Save b4iterdev/10ffe54ef17450e3b0d13e62788a0d1c to your computer and use it in GitHub Desktop.

Select an option

Save b4iterdev/10ffe54ef17450e3b0d13e62788a0d1c to your computer and use it in GitHub Desktop.
UML_Diagram_HRManagement
@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