• Tutorials
  • Courses
  • Tracks

q5

Last Updated :
Discuss
Comments

How does Singleton prevent multiple instances of a class?

By using a public constructor

By using private destructor

By making constructor private and using a static method to access instance

By using multiple constructors

Share your thoughts in the comments