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?

beacusing in car c and car d deaukt construcor call itself even we have a user defined constructor

Hello @Aditya-Kushwaha-914550392281281,

Can you care the code you are referring to?

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.

https://ide.codingblocks.com/s/210884 why this is not working

Hello @Aditya-Kushwaha-914550392281281,


Refer to comments for your mistake.

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.