Loading practice questions
What is the syntax of copy constructor?
Correct Answer: A — classname (const classname &obj){ /constructor definition/ }
Explanation:
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.