WHY OBJECT ORIENTED APPROACH?

Posted by

A major factor in the invention of object oriented approach was to overcome some of the problems encountered with the procedural approach. In OOP ,data is treated as a critical element and is not allowed to flow freely. OOP bounds data closely with the function that operate on it and protects it from accidental modification from outside world .OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these object. A major advantage of OOP is code re-usability.

some important features of object oriented programming are as follows :

  1. Emphasis is on data rather than procedure .
    2.Programs are divided into several objects.
    3.Data is hidden and can not be accessed by external function.
    4.Object can communicate with each other through function .
    5.New data and function can be easily added whenever necessary .
    6.It follows the bottom-up approach.

Advantage of OOP:

     Object-oriented programming have the following advantages over conventional procedural and other approaches:
  1. OOP Provide a clear modular structure for programs .this makes it good for defining abstract data type where implementation details are hidden and clear interfaces are defined.
    2 .OOP makes it easy to maintain and modify existing code as new objects can be created with small changes to existing ones.
    3. OOP provides a good framework for code libraries where software components can be easily taken and modification by the programmer.
    This is particularly useful for developing graphical user interfaces applications.

Leave a Reply

Your email address will not be published. Required fields are marked *