One of the best things about object-oriented programming (OOP) is the encapsulation feature. Encapsulation literally encapsulates data and prevents other objects from accessing its data. The data may only be accessed through its object’s function.
Classes are also a powerful feature in OOP, they create a template for generating objects during run time. However, what’s really powerful is that it can create inheritance. A faster way of updating due to its ability to extend existing classes. Sub classes can inherit all of the features of a super class while adding properties and functions of its own.