Abstract Factory:[Creational]
- Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
- Creates an instance of several families of classes.
- Abstract Factory will be useful while create a family of objects that having same type of implementations.
Note: Abstract Factory can be used while create an instance from family of objects [having lot of similarities] without changing the rules like Carnivore eats Herbivore.
Comments
Post a Comment