Example Imagine a company where people work in departments, which are organized into divisions
Example Imagine a company where people work in departments, which are organized into divisions
e An explicit, and obvious, organizational structure Division Department Person ÷ e each part of the structure is a separate class
An explicit, and obvious,organizational structure. each part of the structure is a separate class
Disadvantages e They don' t work well if there is much common behavior between the kinds of organization e Add regions between divisions and departments?
Disadvantages They don’t work well if there is much common behavior between the kinds of organization. Add regions between divisions and departments?
Solution e Making a supertype for the organization
Solution Making a supertype for the organization
Organization hierarchy Patter parent Hierarchy 米 Organization children
Organization hierarchy Pattern