Encapsulation is the concept of bundling data and methods that operate on that data into a single unit, known as a class.