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 ?    61 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is class definition in c++ ?

83


Write a Program for find and replace a character in a string.

107


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

97


What is istream and ostream in c++?

60


Explain how the virtual base class is different from the conventional base classes of the opps.

94






Write about the scope resolution operator?

99


What is malloc in c++?

51


What is pointer in c++ with example?

61


2. Give the different notations for the class.\

1039


What is the object serialization?

75


What is the difference between reference and pointer?

91


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

109


How much is c++ certification?

64


What is function prototyping? What are its advantages?

86


Which field is used in c++?

57