What is Copy Constructor?

Answer Posted / swetcha

The purpose of a copy constructor is to initialize a new
object of a given class by copying an existing object of
that class.

Is This Answer Correct ?    63 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does c++ sort work?

549


What are the 4 pillars of oop?

660


What kind of problems does name mangling cause?

579


What is the best way to declare and define global variables?

690


Define upcasting.

583






What is the difference between abstraction and polymorphism?

604


What does malloc return in C and C++?

551


Does dev c++ support c++ 11?

542


What does and I oop and sksksk mean?

642


What is object and example?

593


How do you convert stl to steps?

620


What is the 4 difference between delete[] and delete?

522


How do you explain polymorphism?

580


What is a class and object?

587


Write my own zero-argument manipulator that should work same as hex?

569