ABSTRACT

Object-oriented programming involves a different way of solving a problem. As you saw in Chapter 3, programs are designed in terms of the objects in the problem domain, and a class is written for each object. OOP has four fundamental concepts to assist in this design and creation of classes. They are as follows:

1. Encapsulation Hiding the member variables of a class, only allowing access to them through an interface.