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
Answer» C. apply the singleton pattern to class a
2k
0
Do you find this helpful?
9

Discussion

No comments yet

Related MCQs