What are private constructors?

58. What are private constructors?

  1. A private constructor is a special instance constructor.
  2. Private constructors are the constructors which can be used on the object without being explicitly defined.
  1. Only (i)
  2. Only (ii)
  3. Both (i) and (ii)
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.