Copy constructor

sir in the oops 5 video , sir has made three car function in car class with
car()
car(float p, int m, char * n)
car(int p)
then sir told about copy constructor as car e(d) for copying all data of d in e , but my doubt is when e has one parameter then why car (int p) is not used for e by taking d as a parameter for e .

d is a car or a parameter? if d is a car, then sir has shown you working of copy constructor. If we don’t define our own copy constructor, the C++ compiler creates a default copy constructor for each class which does a member-wise copy between objects

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.