Question OOP-CLS-0053
MediumA class Temperature stores Celsius and needs a way to build an object from Fahrenheit. Which design is clearest?
- A.
A static factory method such as Temperature.fromFahrenheit(98.6)
- B.
A global variable
- C.
Sign up free to see the answer and a step-by-step explanation.