Design Patterns in C# – DotNetGuruji.com

Design Patterns provides you the solution to common design problems

 

There are 3 types of Design Patterns as below:

Creational Patterns

  1. Factory Method This creates an instance of several derived classes
  2. Abstract Factory This creates an instance of several families of classes
  3. Singleton In Singleton design patter, only a single instance of a class can exist in the application
  4. Builder This separates the object construction from its representation
  5. Prototype In this design pattern, a fully initialized instance to be copied or cloned

 

Structural Patterns

  1. Adapter It matches the interfaces of different classes
  2. Bridge This separates an object’s interface from its implementation
  3. Composite A tree structure of simple and composite objects
  4. Decorator This adds responsibilities to objects dynamically
  5. Facade In Facade design pattern, a single class that represents an entire subsystem
  6. Flyweight A fine-grained instance used for efficient sharing
  7. Proxy An object representing another object

 

Behavioral Patterns

  1. Chain of Resp. A way of passing a request between a chain of objects
  2. Command Encapsulate a command request as an object
  3. Interpreter A way to include language elements in a program
  4. Iterator Sequentially access the elements of a collection
  5. Mediator Defines simplified communication between classes
  6. Memento Capture and restore an object’s internal state
  7. Observer A way of notifying change to a number of classes
  8. State Alter an object’s behavior when its state changes
  9. Strategy Encapsulates an algorithm inside a class
  10. Template Method Defer the exact steps of an algorithm to a subclass
  11. Visitor Defines a new operation to a class without change

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *