Why do we use constructor overloading? Explanation: The constructors are overloaded to initialize the objects of a class in different ways . This allows us to initialize the object with either default values or used given values.
What is constructor overloading Why do we use it?
Why do we use constructor overloading? Explanation: The constructors are overloaded to initialize the objects of a class in different ways . This allows us to initialize the object with either default values or used given values.