1.

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» D. apply the memento pattern to class a


Discussion

No Comment Found