Question OOP-CTOR-0048
MediumWhich constructor is called by 'Student s2 = s1;' in C++?
- A.
The copy constructor
- B.
The move constructor always
- 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
Which constructor is called by 'Student s2 = s1;' in C++?
The copy constructor
The move constructor always
Sign up free to see the answer and a step-by-step explanation.
The default constructor
The assignment operator