beacusing in car c and car d deaukt construcor call itself even we have a user defined constructor
In user definded constructor wehen we call it then default constructor not call but in case of car c and cr d it is calling why?
i am refeering the code in this video which bhaiya did
Hello @S18ML0016,
As per what i have understood from your doubt,
the default constructor is being called because you are not passing any parameters at the time of object declaration.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.