Question OOP-CTOR-0049
MediumWhich is called by 's2 = s1;' when s2 already exists?
- A.
The copy constructor
- B.
The copy assignment operator
- 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 is called by 's2 = s1;' when s2 already exists?
The copy constructor
The copy assignment operator
Sign up free to see the answer and a step-by-step explanation.
The destructor only
The default constructor