>[!definition]
> Encapsulation refers to packing data with functions that act on said data, along with control of how said data is accessed and [[Mutation|mutated]].
In classes, by default, all members are *private*. In 99% of cases, you should never make your data members public, and instead prefer [[Accessors and Mutators]] in order to control the flow of data.