Home »
MCQs »
OOPs MCQs
What are private constructors?
58. What are private constructors?
- A private constructor is a special instance constructor.
- Private constructors are the constructors which can be used on the object without being explicitly defined.
- Only (i)
- Only (ii)
- Both (i) and (ii)
- There is no concept of private constructors.
Answer: A) Only (i)
Explanation:
A private constructor is a special instance constructor, which has no other arguments.