C++Tutorial for Beginners 52 - Encapsulation

Encapuslation is an idea that focuses on creating self-contained, reusable classes, and clean code. The idea is to hide away the guts of your class -- the variables and methods that are only needed to implement functionality within your class -- and expose only a set of "public" methods, which you can document if your class is intended for use by other programmers.