Monday, November 18, 2024

𝗗𝗲𝘀𝗶𝗴𝗻 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀

 𝗗𝗲𝘀𝗶𝗴𝗻 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀




Here are the common design patterns, categorizing them into Structural and Creational types. Here's a quick breakdown of each pattern in the image:

Structural Patterns

  1. Adapter: Converts an interface into one expected by clients, enabling interaction between incompatible interfaces.
  2. Proxy: Provides a surrogate or placeholder to control access to another object.
  3. Bridge: Decouples an abstraction from its implementation to enable independent development.
  4. Composite: Represents tree structures for part-whole hierarchies, treating individual objects and compositions uniformly.
  5. Decorator: Dynamically adds responsibilities to objects without altering their structure.
  6. Facade: Simplifies subsystem interfaces by providing a unified high-level interface.
  7. Flyweight: Minimizes memory usage by sharing as much data as possible with similar objects.

Creational Patterns

  1. Abstract Factory: Creates families of related objects without specifying their concrete classes.
  2. Builder: Constructs complex objects step by step, separating construction logic from representation.
  3. Factory Method: Defines an interface for creating objects but lets subclasses decide the instantiation.
  4. Prototype: Clones objects to produce new instances without using the new keyword.
  5. Singleton: Ensures a class has only one instance and provides a global point of access.

No comments:

Post a Comment

Understanding Essential DNS Record Types for Web Administrators

  Understanding Essential DNS Record Types for Web Administrators Introduction The Domain Name System (DNS) acts as the backbone of the inte...