Question OOP-CLS-0050
MediumA class has only static methods and a private constructor, such as Java's Math. What is it used as?
- A.
An interface
- B.
A singleton with state
- C.
A utility class whose methods are called without creating objects
- D.
An abstract class
Sign up free to see the answer and a step-by-step explanation.