As we know OOP is basically used to solve the real life applications. We can call OOP as the programming methodology that focuses on data rather than processes. It is a moduler approach to computer program design Each module or objects combines the data and procedures (sequence of instructions) that act on the data. A group of objects that have the proper- ties, operations and behaviour in common is called a class.

Here in OOP's programmers define not only the data type of a data struç- ture, but also the types of operations that can be applied to the data struc- ture. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships be- tween one object and another.

For example,objects can inherit character- istics from the other objects. May be some of you get confused with the term Object.Actually object are the basic run-time entities in an object-oriented system and every object associated with data and functions which define meaningful operations on that object. For object-oriented programming, we need an object-oriented program- ming language like Java, C++ etc.We are here going to discuss about the C++ language.

Some main features of OOP are:

  1. Encapsulation
  2. Data abstraction
  3. Inheritance
  4. Polymorphism
  5. Message passing
  6. Extensibility
  7. Persistency
  8. Data hiding