<<< Factory Method | Index | Prototype Structure >>> |
Problem to solve:
Client wants to create objects without specifying subclass types.
Client has access to prototypical instances, and wants to create new objects by copying them from existing prototypes.
Solution: Abstract base class specifies a pure virtual clone( ) method.
|
|
<<< Factory Method | Index | Prototype Structure >>> |