Question OOP-CLS-0020
HardWhich statement about the singleton pattern is correct?
- A.
It lets a class have one method only
- B.
It ensures a class has only one instance and provides a global point of access to it
- C.
It forbids static members
- D.
It creates a new object on every call
Sign up free to see the answer and a step-by-step explanation.