benefits of oop and its advantage

What are benefits of OOP ? How it is different from procedure oriented programming?


4 Answers
1-4 of  4
4 Answers
  • Code Reuse and Recycling: Objects created for Object Oriented Programs can easily be reused in other programs.
    Encapsulation : Once an Object is created, knowledge of its implementation is not necessary for its use. In older programs, coders needed understand the details of a piece of code before using it (in this or another program).
    Design Benefits: Large programs are very difficult to write. Object Oriented Programs force designers to go through an extensive planning phase, which makes for better designs with less flaws. In addition, once a program reaches a certain size, Object Oriented Programs are actually easier to program than non-Object Oriented ones.
    Software Maintenance: Programs are not disposable. Legacy code must be dealt with on a daily basis, either to be improved upon (for a new version of an exist piece of software) or made to work with newer computers and software. An Object Oriented Program is much easier to modify and maintain than a non-Object Oriented Program. So although a lot of work is spent before the program is written, less work is needed to maintain it over time.

  • Code Reuse and Recycling: Objects created for Object Oriented Programs can easily be reused in other programs.
    Encapsulation (part 1): Once an Object is created, knowledge of its implementation is not necessary for its use. In older programs, coders needed understand the details of a piece of code before using it (in this or another program).
    Encapsulation (part 2): Objects have the ability to hide certain parts of themselves from programmers. This prevents programmers from tampering with values they shouldn't. Additionally, the object controls how one interacts with it, preventing other kinds of errors. For example, a programmer (or another program) cannot set the width of a window to -400.
    Design Benefits: Large programs are very difficult to write. Object Oriented Programs force designers to go through an extensive planning phase, which makes for better designs with less flaws. In addition, once a program reaches a certain size, Object Oriented Programs are actually easier to program than non-Object Oriented ones.
    Software Maintenance: Programs are not disposable. Legacy code must be dealt with on a daily basis, either to be improved upon (for a new version of an exist piece of software) or made to work with newer computers and software. An Object Oriented Program is much easier to modify and maintain than a non-Object Oriented Program. So although a lot of work is spent before the program is written, less work is needed to maintain it over time.

  • Advantages of oops:
     1)Simplicity
     2)Modularity
     3)Maintainability
     4)Reusability
     5)Extensibility


    Procedure Oriented Programming
      1)In Procedural Oriented Programming, program is divided into small parts called functions.
      2)Procedural Oriented Programming follows Top Down approach.
      3)Procedural Oriented Programming does not have any access specifier.
      4)In Procedural Oriented Programming, Overloading is not possible.
      5)Example of Procedural Oriented Programming are : C, VB, FORTRAN, Pascal.

    Object Oriented Programming
    1)In OOP, program is divided into parts called objects.
    2)OOP follows Bottom Up approach.
    3)OOP has access specifiers named Public, Private, Protected, etc.
    4)In OOP, overloading is possible in the form of Function Overloading and Operator Overloading.
    5)Example of OOP are : C++, JAVA, VB.NET, C#.NET.

Object Oriented Programming

Didn't get the answer.
Contact people of Talent-Object Oriented Programming directly by clicking here