What is constructor overloading ?
What is constructor overloading ?
Constructor in a class with same name but different arguments
And when we are creating object a particular constructor will be used that will be decided by the compiler
Overloading takes place during compile time -> so when we are compiling that time only it is decided which method will be called.
Give an example of Merchant in this case
Means creating an object of merchant with parent
Creating an object of merchant without parent