Object Oriented Programming2080.15 marksConstructor overloading
What is constructor? Write a program to demonstrate constructor overloading in C++. [1+4]
What is constructor? Write a program to demonstrate constructor overloading in C++. [1+4]
A constructor is a special member function of a class that is automatically called when an object of that class is created. It has the same name as the class and has no return type (not even void). Its main purpose is to initialize the data members of an object. Key features: - Same name as the c...