this post was submitted on 30 May 2024
384 points (94.2% liked)

Programmer Humor

31230 readers
995 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 58 points 1 month ago (2 children)

you can write oop without inhetitance

[–] [email protected] 9 points 1 month ago

There's the camp of those who say that inheritance is synonymous with OOP. I'm not in that camp, but I'd like to see you duke it out with them.

[–] prashanthvsdvn 1 points 1 month ago (1 children)

That’s just structs and unions right?

[–] HereIAm 4 points 1 month ago

You will still have private/public sections, interfaces (unless you class them as inheritance), classes and instances, the SOLID principles, composition over inheritance. OOP is a lot more than just large family trees of inheritance, a way of thinking that's been moved away from for a long time.