The following will be discussed:
How constructors and destructors provide management of class-defined object
How to use a constructor for initialization
About the use of default constructors
How to use constructor initializers
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.