Cons of Object-Oriented Programming


Some disadvantages of the object-oriented programming are listed below:

Steep Learning Curve
The thought process involved in OOP may not be natural for people, and it can take time to get used to it. It is complex to create programs based on interaction of objects. Some of the key programming techniques, such as inheritance and polymorphism, can be challenging to comprehend initially.

Larger Program Size
Object-oriented programs typically involve more lines of code than procedural programs.

Slower Programs
Object-oriented programs are typically slower than procedure-based programs, as they typically require more instructions to be executed.

Not Suitable for All Types of Problems
There are problems that lend themselves well to functional, logic, or procedure-based -programming styles, and applying OOP in those situations will not result in efficient programs.



Review: Disadvantages of Object-Oriented Programming
    Which is NOT one of the disadvantages of object-oriented programming?

      Large program size
      Not suitable for all types of problems
      Slower development
      Slower program
        Result: