What is copy constructor?

What is copy constructor?

 Copy Constructor is defined as : 
> A constructor function with the same name as the class
> Used to make deep copy of objects.
> Initializes object member variables  with another object of the same class.
> A New object from an existing one by initialization.

Date:2006-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher