Question OOP-CTOR-0057
MediumWhat does a private constructor make possible?
- A.
Faster object creation
- B.
Automatic garbage collection
- 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 a private constructor make possible?
Faster object creation
Automatic garbage collection
Sign up free to see the answer and a step-by-step explanation.
Controlling object creation, as in a singleton or a static factory
Multiple inheritance