Question OOP-CTOR-0052
MediumWhat does the 'explicit' keyword on a one-argument constructor prevent?
- A.
Inheritance
- B.
Creating objects on the heap
- 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 does the 'explicit' keyword on a one-argument constructor prevent?
Inheritance
Creating objects on the heap
Sign up free to see the answer and a step-by-step explanation.
Copying the object
Implicit conversions such as P p = 7;