What is difference between copy constructor and constructor?

Questions by suryateja03

Showing Answers 1 - 2 of 2 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

Give your answer:

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

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions