You are on page 1of 1

interface

ISubject
registerObserver(IObserver o)
removeObserver(IObserver o)
notifyObservers()

interface
IObserver
callMe()

HRDepartment
callMe()

EmployeeManagementSystem
employee : Employee
msg : String
employeeDAO : EmployeeDAO
observers : List<IObserver>
employees : List<Employee>
registerObserver(IObserver o)
removeObserver(IObserver o)
notifyObservers()

PayrollDepartment
callMe()
for (departments in observers){
anObserver.callMe();
}

EmployeeDAO

You might also like