383
submitted 3 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 60 points 3 months ago

you can write oop without inhetitance

[-] [email protected] 10 points 3 months 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.

[-] [email protected] 1 points 3 months ago

That’s just structs and unions right?

[-] [email protected] 4 points 3 months 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.

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

Programmer Humor

32024 readers
508 users here now

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

Rules:

founded 5 years ago
MODERATORS