Use private fields and provide public getters/setters.
Encapsulation hides an object's internal state and requires interaction through methods. This protects data integrity and simplifies maintenance. For instance, a `Product` class with private fields and public methods controls how its data is accessed or modified.