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






Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain bubble sorting.

1


Explain rethrowing exceptions with an example?

1


Write a program using display() function which takes two arguments.

1


What are the new features that iso/ansi c++ has added to original c++ specifications?

1


Explain deep copy and a shallow copy?

1






How can you tell what shell you are running on unix system?

44


Mention the purpose of istream class?

8


Can we specify variable field width in a scanf() format string? If possible how?

23


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

3


What is the iunknown interface?

1


What are references in c++?

1


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

22


Describe the advantage of an external iterator.

1


What is meant by forward referencing and when should it be used?

11


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

16