A

Admin • 828.03K Points
Coach

Q. Which design pattern ensures a class has only one instance?

  • (A) Factory
  • (B) Observer
  • (C) Singleton
  • (D) Strategy
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
Singleton restricts class instantiation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.