Building C++ Classes  «Prev  Next»
Lesson 1

Introduction to Constructor Member Functions

The following will be discussed:
  1. How constructors and destructors provide management of class-defined object
  2. How to use a constructor for initialization
  3. About the use of default constructors
  4. How to use constructor initializers
  5. How constructors can perform automatic conversions
At the end of the module, you will be given the opportunity to take a quiz covering these topics.

The process of creating and deleting objects in C++ can be described by the following two operations.
Every time an instance of a class is created the constructor method is called. The constructor has the same name as the class and it does not have a return type.
The destructor has the same name as the class and has a '~' in front of it.