Benefits of object oriented programming

Kkibet
1 min readDec 6, 2022

--

There are great advantages that comes with using using object oriented programming. Many programmers world wide prefer to go this way since it makes programmers work more easier.Let’s see how?!

In object oriented programming, we have four pillars which are:

  • Encapsulation
  • Abstraction
  • Inheritance
  • Polymorphism

Using encapsulation we are able to group related functions and methods together therefore reducing the complexity of the code statement and increase reusability. With abstraction we can hide the details and complexity of the code while showing only the essentials hence we reduce complexity and isolate the impact of change.

Inheritance on the other hand helps us to eliminate redundant code that can cause an application to crush. Polymorphism is of great use when it comes to switches as we can refactor ugly switch/case statements.

In conclusion, object oriented programming has widely been adopted by many professional programmers as well as coding newbies. Programmers who understand the basics of Oop are known to have more market demand and therefore you should try it too.

--

--

Kkibet

Software engineering tips and tricks to help you in your journey towards being a software engineer you have always wanted.