Encapsulation

In object-oriented programming encapsulation means that code that logically belongs together is placed in a single entity, namely a class. Accessing code and modifying class variables is achieved by using public class methods.