πŸ“Š Software Design Modeling (SDM)
Q. You want all the clients using class A to use the same instance of class A, what should you do to achieve this goal?
  • (A) mark class a final
  • (B) mark class a abstract
  • (C) apply the singleton pattern to class a
  • (D) apply the memento pattern to class a
πŸ’¬ Discuss
βœ… Correct Answer: (C) apply the singleton pattern to class a

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
117
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate