Home »
MCQs »
C++ MCQs
Which of the following constructor is used to create an object by initializing data members using an existing object?
199. Which of the following constructor is used to create an object by initializing data members using an existing object?
- Default constructor
- Dynamic constructor
- Copy constructor
- None of the above
Answer: C) Copy constructor
Explanation:
Copy constructor is used to create an object by initialize data members using existing object.