Question OOP-ENC-0056
MediumA Java class makes all fields private but provides a public setter for every field with no checks. What is the problem?
- A.
Setters slow down the program
- B.
It will not compile
- C.
Sign up free to see the answer and a step-by-step explanation.