/* */ Click to Join Live Class with Shankar sir Call 9798158723

What is Constructor ?

A constructor is a special ‘MEMBER FUNCTION’ having the same name as that of its class which is used to initialize some valid values to the data members of an object. It is executed automatically whenever an object of a class is created.the constructor should be declared in public section.

Type of Constructor

  1. Default constructor
  2. Parameterized Constructor
  3. Copy Constructor in C++