1.
What is Design Patterns?
- Design patterns are solutions, best practices to general problems that software developers faced during software development
2.
Types of Design Patterns
- Creational Patterns
- This type deals with the object creation and initialization. This pattern gives the program more flexibility in deciding which objects need to be created for a given case
- Structural Patterns
- This type deals with class and object composition. These pattern focuses on decoupling interfaces and implementation of classes and its objects.
- Behavioral Patterns
- This type deals with communications between classes and objects.
3.
Creational Patterns
- Factory Method
- Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
- Abstract Factory
- Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
- Singleton
- Ensure a class has only one instance and provide a global point of access to it.
- Builder
- Separate the construction of a complex object from its representation so that the same construction process can create different representations.
- Prototype
- Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.
4.
Structural
Patterns
·
Adapter
·
Bridge
·
Composite
·
Decorator
·
Façade
·
Flyweight
·
Proxy
5.
Behavioral Patterns
·
Chain of Resp.
·
Command
·
Interpreter
·
Iterator
·
Mediator
·
Memento
·
Observer
·
State
·
Strategy
·
Template Method
·
Visitor
No comments:
Post a Comment