DEV Community

Discussion on: I Do Not Know Object Oriented Programming!

Collapse
 
loucyx profile image
Lou Cyx

Folks generally mix OOP with classes, when those are two different things (generally put together, but not the same). You can do OOP without classes, just using other encapsulation methods. From my PoV classes are really bad (and the inheritance model they present), so I generally use other methods of encapsulation that allow me to do composition instead. OOP is just objects and messages.

So, TL;DR: The title should be more like "I don't know/use classes".

Collapse
 
loucyx profile image
Lou Cyx • Edited

Why did you hid my comment, @resourcefulmind ? I just said that OOP and classes aren't the same thing 😅

You even said:

I would welcome contributions, resources and comments that would help other newbies. We can burn brighter than the sun if we all help each other.

Newbies generally confuse OOP with classes/inheritance, and those are two different things 😅

Collapse
 
resourcefulmind profile image
Opeyemi Stephen

My sincerest apologies for this. I wanted to click something else. I have done the needful now. Your comments are highly appreciated