In object-oriented programming, encapsulation means an object hides its internal implementation details from outside code. The programmer only interacts with the object through its public interface (methods), not directly with its internal data or logic.