Copy constructor

https://online.codingblocks.com/player/1654/content/500

the default constructor is being called despite making a copy constructor . can anyone help ?

Not the case.
Once you make a copy constructor, the default constructor will not exist and you will get an error.
Check this code for reference.
https://ide.codingblocks.com/#/s/13154