<<< Patterns you've already seen | Index | Pattern One: Singleton >>> |
One of the most important forms of coupling involves the process of object creation.
Creation is also somewhat more difficult to do abstractly, since...
...there's no such thing as a virtual constructor.
Explanation: A constructor cannot be virtual, because
at the time when the constructor is invoked the virtual table would
not be available in the memory.
Hence we cannot have a virtual constructor.
There are two creation design patterns to consider:
A
A
<<< Patterns you've already seen | Index | Pattern One: Singleton >>> |