3 cons of Object Oriented Programming

3 cons of Object Oriented Programming
Average rating: 1
(3 votes)

Thanks! You’ve rated this material!

As Ruby on Rails is our main stack, it’s natural that we’ve already paid attention to object-oriented programming with Ruby. But today we’ll present you 3 cons of Object Oriented Programming that you can apply to other languages as well.

So here there are:

  1. Inheritance. Object Oriented languages don’t make Contain and Delegate easy to do. They were designed to make Inheritance easy.
  2. Encapsulation. Object state variables are protected from outside access, i.e. they’re Encapsulated in the Object. Encapsulation is Safe for your variables.

  3. Polymorphism. Interfaces will give you this. And without all of the baggage of OO. And with Interfaces, there isn’t a limit to how many different behaviors you can mix in.

Want to see more examples? Check them here.

If you are a fan of functional programming, this material about pros and cons of functional programming will be useful for you.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111