<<< Disabling copy example | Index | Implementing prototypes >>> |
Problem:
We have objects derived from some common base.
We need a clone operation for creating new objects of the same type without knowing their real type.
Solution:
We need something that works like a virtual copy constructor.
<<< Disabling copy example | Index | Implementing prototypes >>> |