inheritance - employee - manager class diagram, representing additional constraints on manager entity -


i come er background , shifting uml diagrams. constructing uml diagram real work scenario. 1 of class diagram constructing employee - manager class diagram, manager employee. classic uml diagram has been around ages , constructed below

classic employee-manager class diagram

however there things manager can employee cannot, manager can pay wages (and to) employees working under him/her. solution situation reconstruct class diagram this

employee-manager extended class diagram

i creating specialized class manager , represent relationship third entity. ?

there lot of possible types of relationships between employee , manager. expect every manager employee. true? interim manager instance employee? or subcontractor? or project manager organization? same questions can applied employees.

therefor classical relationship between employee , manager in many cases incorrect. employee have several roles in 1 organization. happens in high schools or colleges, persons have educational contracts in different departments. 1 employee having different managers @ different hours of day.

has manager several employees in department or set of contracts? describe manager implementation of function , being employee status having valid contract within organization? organization might have 100 employees, 75 fte , 10 managers of 2 work different organizations.

the answer question therefor: chance model correct imo quite small. relationship more complex model can describe.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -