Question OOP-CTOR-0009
MediumWhat is a copy constructor?
- A.
A constructor that creates an object as a copy of another object of the same class
- B.
A constructor that copies a file
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
What is a copy constructor?
A constructor that creates an object as a copy of another object of the same class
A constructor that copies a file
Sign up free to see the answer and a step-by-step explanation.
A constructor that takes no parameters
A destructor that copies data