Design Patterns Introduction
- Design patterns describe recurring software design problems and their solutions.
- Design patterns assign in reuse of software architectures.
- Design patterns are independent of any programming language and they don't talk about code re-use.
- The book "Design Patterns: Elements of Reusable Object-Oriented Software" also referred as "GoF (Gang of Four) Book" started the design patterns. Enrich Gamma, Richard Helm, Ralph Johnson and John Vlissides are the authors of this book.
- Design patterns are classified into various categories:-
- Creational patterns,
- Structural patterns and
- Behavioral patterns.
- Creational patterns deal with instantiation. Some examples include:-
- Singleton,
- Abstract Factory,
- Factory,
- Builder and
- Prototype patterns.
- Structural patterns deal with ways of class composition to add new functionality. Some examples include:-
- Adapter,
- Bridge,
- Composite,
- Decorator,
- Facade,
- Flyweight and
- Proxy patterns.
- Behavioral patterns deal with object communication. Some examples include:-
- Chain of responsibility,
- Command,
- Interpreter,
- Iterator,
- Mediator,
- Memento,
- Observer,
- State and
- Visitor patterns.
0 comments:
Post a Comment