What is Object-oriented programming?

What is Object-oriented programming?

Object-oriented programming (OOP) treats data as a 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 accidental modification from outside functions.

Object-oriented programming (OOP) allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.

Features of Object-oriented programming (OOP)

  • Emphasis is on data rather than procedure.
  • Programs are divided into what are known as objects.
  • Data structures are designed such that they characterise the objects.
  • Functions that operate on the data of an object are tied together in the data structure.
  • Data is hidden and cannot be accessed by external functions.
  • Objects may communicate with each other through functions.
  • New data and functions can be easily added whenever necessary.
  • Follow the bottom-up approach in program design.