Multiple constructor or Constructor overloading
If a class has several constructors with the same names and different parameters, then they are said to be overloaded. Constructor overloading enables you to use the same name for different constructors, to perform identical or different tasks in the same class. If you have to perform a single operation but with a different number or types of arguments, you can simply overload the constructor.
For example,
class A { int i, j; public: A(); //default Constructor declaration A(int x,int y=0); // Parameterized constructor decl. A(A& D); // copy constructor declaration void show() // member function declaration };
