How do you implement encapsulation in Java?
You make the fields of the class private and provide public methods to manipulate them.
You're almost there! It's not just about making fields private; it's also about ensuring access through controlled methods.
Can you explain the advantages of using getter and setter methods for field access instead of making fields public?