Structural Design Pattern Design Patterns and Principles Chapter 2 Part 2 Flashcards
- are a subset of design patterns in software development that focus on the composition of classes or objects to form larger, more complex structures.
- They help in organizing and managing relationships between objects to achieve greater flexibility, reusability, and maintainability in a software system
Structural design patterns
is a structural design pattern, it allows you to make two incompatible interfaces work together by creating a bridge between them.
Adapter Method
The intent of this pattern is to decouple abstraction from implementation so that the two can vary independently
BRIDGE
is a tree structure that contains Branches which are Folders as well as Leaf nodes which are Files
file system
- The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.
- lets clients treat individual objects and compositions of objects uniformly.
-Compose objects into tree structures to represent part-whole hierarchies.
COMPOSITE
allows to add behavior to individual objects, either statically or dynamically, without affecting the behavior of other objects from the same class.
DECORATOR
is a structural design pattern that allows programs to efficiently share many objects by minimizing memory usage.
FLYWEIGHT
- is a structural design pattern,it provide to create a substitute for an object, which can act as an intermediary or control access to the real object.
- The intent of this pattern is to provide a “Placeholder” for an object to control references to it.
PROXY
is a class that provides a simple interface to a complex subsystem which contains lots of moving parts
facade