What is Copy Constructor?

Answer Posted / naveen kumar

The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to improve object oriented design skills?

754


What is the importance of mutable keyword?

790


What is c++ vb?

835


Can we use struct in c++?

777


What do you mean by Encapsulation?

801


What does ios :: app do in c++?

775


What is c++ 11 and c++ 14?

820


What apps are written in c++?

810


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

2136


Write a Program to find the largest of 4 no using macros.

830


What are the fundamental features of an object-oriented language?

710


any one please tell me the purpose of operator overloading

2157


What are the 5 oop principles?

831


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4465


Who created stl?

869