Encapsulation is one of the fundamental principles of Object-Oriented Programming (OOP). It is the practice of hiding the internal state and requiring all interactions to be performed through methods.
Takashi: "Sensei! I saw 'Count' written in a C# class, and it has 'get' and 'set'... what exactly is that?" Sensei: "Oh, you've finally encountered 'properties'! It's a very convenient mechanism that ...