ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the syntax of copy constructor?
Correct Answer: A — classname (const classname &obj){ /*constructor definition*/ }
The syntax must contain the class name first, followed by the classname as type and &object within parenthesis. Then comes the constructor body. The definition can be given as per requirements.