Structural Design Patterns

Structural patterns

Structural patterns in software design focus on organizing and composing classes and objects to form larger structures.

 

Few common types of structural design patterns:


1. Adapter Pattern: Allows the interface of an existing class to be used as another interface.

  

2. Bridge Pattern: Separates abstraction from implementation, allowing them to vary independently.


3. Composite Pattern: Composes objects into tree structures to represent part-whole hierarchies.


4. Decorator Pattern: Attaches additional responsibilities to an object dynamically.


5. Facade Pattern: Provides a simplified, unified interface to a set of interfaces in a subsystem.


6. Flyweight Pattern: Minimizes memory usage or computational expenses by sharing as much as possible with related objects.


7. Proxy Pattern: Provides a surrogate or placeholder for another object to control access to it.


These patterns help enhance flexibility, reusability, and maintainability in software design. 

Comments