implemented abstract factory

This commit is contained in:
ismayilmalik 2018-01-03 01:40:46 +03:00
parent 10314f2183
commit 9878d49d09

View File

@ -11,6 +11,7 @@
- [Singleton](#singleton) - [Singleton](#singleton)
- [Builder](#builder) - [Builder](#builder)
- [Factory](#factory) - [Factory](#factory)
- [Abstract Factory](#abstract-factory)
- [Structural patterns](#structural-patterns) - [Structural patterns](#structural-patterns)
- [Composition](#composition) - [Composition](#composition)
- [Behavioral patterns](#behavioral-patterns) - [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 Define an interface for creating an object, but let subclasses decide which class to
instantiate. Factory Method lets a class defer instantiation to subclasses. 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
Structural patterns are concerned with how classes and objects are composed to form 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. larger structures. Structural class patterns use inheritance to compose interfaces or implementations.