Object-Oriented Paradigm
The major objective of OO approach is to eliminate some of the flaws encountered in the procedural approach. OOP treats data as critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it and protects it from unintentional modification by other functions. OOP allows us to decompose a problem into number of entities called objects and then build data and functions (known as methods in java) around these entities.
The combination of data and methods make up an object as shown below.