Constructor has the same name as the class itself Constructors don’t have input argument Constructors don’t have return type A constructor is automatically called when an object is created. It must be ...
1. Constrcutor: A constructor is a special member function of a class that is automatically called when an object is created. It has the same name as the class. It's main purpose is to initialize the ...