Is it possible to overload a constructor?

Is it possible to overload a constructor?

- When an object is created or defined, a constructor method is created. It is used to initializations of the different declared member variables of its object. Overloading a constructor means make it behave differently.
- Example : The function below has the same name but overloaded to return double and integer values.
double func( double a );
int func( int a, int b );

Is it possible to overload a constructor?

Yes it is possible. A constructor can be overloaded to pass different arguments to the object.
Overriding vs. overloading
Overriding vs. overloading - Overloading means having methods with same name but different signature....
Static vs. dynamic binding - C++
Static vs. dynamic binding - Binding means connecting the function call to a function implementation...
What is abstract class?
What is abstract class? - A class whose object can't be created is abstract class...
Post your comment