Employee and Company
Company
Organization that employs multiple employees.
- Can have zero or more employees (one-to-many relationship)
- Method to add employees to the company
- Private properties have getters and setters
Employee
Represents an employee with personal and financial information.
- Has one BankInfo (1:1 relationship)
- Has one Status (1:1 relationship)
- Belongs to one Company
- Private properties have getters and setters
BankInfo
Employee's banking information.
- Associated with exactly one Employee
- Private properties have getters and setters
Status
Employee's work status (manager or not, years of service).
- Associated with exactly one Employee
- Constructor overloading for different initialization
- Private properties have getters and setters