<<< Public Interfaces | Index | Object Reuse >>> |
To provide convenient ways of object initialization by users.
To initialize all data attributes to appropriate values.
To give object a good state right from the beginning of its lifetime.
To properly initialize base classes, in a hierarchical model of objects.
To allocate dynamic memory and resources, if needed by object implementation.
C++ programmers should also worry about object destructors and memory/resource deallocation.
<<< Public Interfaces | Index | Object Reuse >>> |