(. Prototype) - , .
', , -, ' .
:
, , , ;
, ;
. , , .
UML ,
- Prototype :
- ;
- ConcretePrototype :
- ;
- Client 볺:
- ', .
³
볺 , .
( )
(. Factory Method) , .
', , . .
:
- , ' ;
- , ', , ;
- ' , , ' .
UML ,
- Product :
- ', ;
- ConcreteProduct :
- Product;
- Creator :
- , ' Product. Creator , ' ConcreteProduct;
- ' Product;
- ConcreteCreator :
- , ' ConcreteProduct.
³
, .
4.
(. structural patterns) , , ' .
.
|
|
' ' . ' ' , .