home *** CD-ROM | disk | FTP | other *** search
- Very often, a constructor creates an object so that all or some of
- its data members reside in storage allocated from dynamic memory.
- Use of dynamic memory differs from the default method of storage
- allocation in that it is allocated and deallocated by explicit
- function calls in a C++ program, rather than by the compiler. If
- a constructor for a class uses dynamic memory, the destructor must
- release that memory.
-