Question OOP-ENC-0049
MediumA Java class Order exposes a public field total that other classes update directly. What is the main risk?
- A.
The program will not compile
- B.
The field becomes static
- C.
Sign up free to see the answer and a step-by-step explanation.