Question OOP-CTOR-0047
MediumWhen does a C++ compiler stop generating a default constructor automatically?
- A.
When the class has a destructor
- B.
Never
- 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
When does a C++ compiler stop generating a default constructor automatically?
When the class has a destructor
Never
Sign up free to see the answer and a step-by-step explanation.
As soon as you declare any constructor yourself
When the class has static members