implemented abstract factory
This commit is contained in:
parent
10314f2183
commit
9878d49d09
@ -11,6 +11,7 @@
|
||||
- [Singleton](#singleton)
|
||||
- [Builder](#builder)
|
||||
- [Factory](#factory)
|
||||
- [Abstract Factory](#abstract-factory)
|
||||
- [Structural patterns](#structural-patterns)
|
||||
- [Composition](#composition)
|
||||
- [Behavioral patterns](#behavioral-patterns)
|
||||
@ -34,6 +35,10 @@ same construction process can create different representations.
|
||||
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 famili es of related or dependent objects without
|
||||
specifying their concrete classes.
|
||||
|
||||
## Structural patterns
|
||||
Structural patterns are concerned with how classes and objects are composed to form
|
||||
larger structures. Structural class patterns use inheritance to compose interfaces or implementations.
|
||||
|
Reference in New Issue
Block a user