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

What is buffering in c++?

574


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

765


Can enum be null?

575


What is #include iostream h in c++?

594


State two differences between C and C++.

596






Why is oop useful?

587


How can you quickly find the number of elements stored in a static array?

624


Is c++ slower than c?

560


Write a c program for binary addition of two 8 bit numbers.

3648


What are string library functions(syntax).

561


What is object in c++ example?

611


What is ambiguity in inheritance?

611


Define pure virtual function?

551


How compile and run c++ program in turbo c++?

613


Is c++ the hardest programming language?

628