Agenda

  1. this Pointer
  2. Types of Member Functions
  3. Constructors and Their Types
  4. Constants
  5. Dynamic Memory Allocation
  6. References

1. this Pointer


2. Types of Member Functions

Member functions inside a class are classified into:

  1. Constructor - Used to initialize an object.
  2. Destructor - Used to release resources.
  3. Mutator - Modifies the object's state (also called setter function).