What is difference between copy constructor and constructor?

Questions by suryateja03

Showing Answers 1 - 3 of 3 Answers

Somsubhra Maity

  • Jul 30th, 2006
 

a copy constractor can accept a reference to its own class,where the simple constractor can't  do the job.

  Was this answer useful?  Yes

Anurag Verma

  • Aug 7th, 2006
 

Constructor is called when an object is created.Copy constructor is called when the copy of an object is made. For e.g. passing parameter to function by value, function returning by value. Copy constructor takes the parameter as const reference to the object.

  Was this answer useful?  Yes

Amiya Pani Kjr Odisa

  • Aug 16th, 2017
 

Constructor create object. From scratch but Copy constructor create from existing object. Constructor creates new object. Copy constructor creates clone of existing object.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions