In C++, a constructor is a special 'MEMBER FUNCTION' with the same name as its class that is used to initialize some valid values to an object's data members. It is run automatically whenever a class object is created.
What is Constructor?
In C++, a constructor is a special method that is called automatically when an object is created. In general, it is used to initialize the data members of new objects. In C++, the constructor has the same name as the class or structure. Constructor is always called when an object is created. It constructs the values, i.e. provides data for the object, hence the name constructors.
Because constructors do not have a return value, they do not have a return type.
To know more about Constructor, visit: https://brainly.com/question/27727622
#SPJ4