Answer by
brilliance (54)
One of four fundamental OOP concepts, the others being inheritance, polymorphism, and abstraction. Encapsulation makes a class's fields private, and allow users to access them through public methods. A private field is not accessible to anyone outside the class, thus, this is, also, know as data hiding.