Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. What is true about private...
What is true about private constructor?

Private constructor ensures only one instance of a class exist at any point of time

Private constructor ensures multiple instances of a class exist at any point of time

Private constructor eases the instantiation of a class

Private constructor allows creating objects in other classes

Answer: A . Private constructor ensures only one instance of a class exist at any point of time
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

0Shares
0
Scroll to Top