Site icon Pathshala Nepal

What are the advantages and disadvantages of OOP?

Object Oriented Programming
Online Calculator

Write down the advantages and disadvantages of object-oriented programming?


1 Answer


The advantages of object-oriented programming (OOP) are as follows:

  1. The complexity of the software can be merged easily.
  2. The data hiding concept helps developers build secure programs.
  3. Through class concepts, we can define the user-defined data types.
  4. The inheritance concept can be used to eliminate the redundant code.
  5. The message passing concept helps the programmer for communicating between different objects.
  6. Through the inheritance concept, we can define different classes with combined features.
  7. New data and functions can be easily coded whenever necessary.
  8. OOP treats data as critical elements and does not allow it to flow freely around the program.
  9. OOP ties data elements more closely to the functions that operate.

The disadvantages of object-oriented programming are as follows:

  1. The use of OPOP is waste of time in the case of small projects or codes.
  2. Object-Oriented Programs are much larger than other programs.
  3. Object-Oriented Programs require a lot of work to create. Specifically, a great deal of planning goes into an Object-Oriented Program well before a single piece of code is ever written.
  4. Object-Oriented Programs are slower than other programs, partially because of their size. Other aspects of Object-Oriented Programs also demand more system resources, thus slowing the program down.
Topics from Computer
Related Questions