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? (Solved)

1. mark class a final

2. mark class a abstract

3. apply the singleton pattern to class a

4. apply the memento pattern to class a

  • c. apply the singleton pattern to class a
Subscribe Now

Get All Updates & News