DEV Community

Discussion on: The Four Pillars of Object Oriented Programming

Collapse
 
oguimbal profile image
Olivier Guimbal • Edited

Nice article. I'd add my 2 cents: While those features are often encountered in OO languages, they are not mandatory. For instance, GO is an OO language in some way, but it does not have inheritance.

And these pillars are not an uniquely OO feature. You'll also find them in FP (Functional Programming) languages. Except maybe for inheritance, which you will of course not find in purely FP languages (Haskell, Elm, ...) - but will find it in most of them as a result of their integration in an ecosystem (Scala, F#, ...).

Richard Feldman speaks about this in one of my favorite tech talks (specifically at 19:55, but the whole talk is really worth watching)

... That said, it does not take anything away from your article :) I just wanted to share this talk.

Some comments have been hidden by the post's author - find out more