Lecture 2
Lecture 2
These design patterns are all about Class and Object composition.
Structural class-creation patterns use inheritance to compose interfaces.
Structural object-patterns define ways to compose objects to obtain new
functionality.
o Adapter: Match interfaces of different classes
o Bridge: Separates an object’s interface from its implementation
o Composite: A tree structure of simple and composite objects
o Decorator: Add responsibilities to objects dynamically
o Façade: A single class that represents an entire subsystem
o Flyweight: A fine-grained instance used for efficient sharing
o Private Class Data: Restricts accessor/mutator access
o Proxy: An object representing another object
Behavioral Design Patterns
These design patterns are all about Class's objects communication.
Behavioral patterns are those patterns that are most specifically
concerned with communication between objects.