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

Explain how an exception handler is defined and invoked in a Program.

586


What operator is used to access a struct through a pointer a) >> b) -> c) *

596


What is the advantage of c++ over c?

566


Explain the advantages of using friend classes.

594


Explain the concept of copy constructor?

623






Is rust better than c++?

607


Explain linear search.

634


Which compiler does turbo c++ use?

610


Explain what are single and multiple inheritances in c++?

561


Why iomanip is used in c++?

643


What is difference between rand () and srand ()?

596


How do you declare a set in c++?

540


Which operator cannot be overloaded c++?

593


What gives the current position of the put pointer?

565


What is the operator in c++?

635