To hide internal details and expose only necessary parts.
Encapsulation helps manage complexity by hiding the internal workings of a class and only exposing methods that are necessary for use. This allows changes to the internal implementation without affecting external code. For instance, a `Product` class might hide the way it calculates discounts, exposing only a method `getDiscountedPrice()`.