Question OOP-ENC-0025
EasyWhich of these breaks encapsulation the most?
- A.
Making fields private
- B.
Making every field of a class public
- C.
Validating values in a setter
- D.
Providing a getter for a field
Sign up free to see the answer and a step-by-step explanation.