Jump to content

C++ Language/Objects/Constructors

From Wikibooks, open books for an open world

A "constructor" is a special member function, which a class uses to initialize its data members as part of instantiating an object from that class.

  1. Ordering
  2. Initialization by Copy-Constructor
  3. Initialization by One-Parameter-Constructor
  4. Keeping Default Constructor
  5. Delegation within Class
  6. Memory Full
  7. Placement New