314
OOP at home: (feddit.nu)
you are viewing a single comment's thread
view the rest of the comments
[-] NigelFrobisher@aussie.zone 13 points 1 day ago* (last edited 1 day ago)

Examples of inheritance hierarchies are always totally useless shit like this - what if a cow is an animal; What if a cow is a mammal, all mammals are animals and all mammals have a lactate() method?

[-] ulterno@programming.dev 9 points 18 hours ago

Because any real life use that might come to mind would probably be related to some NDA protected database in a company.
And it is otherwise hard to think of anything at the spot, so just go with what the first example on the web-search came up with.

load more comments (2 replies)
this post was submitted on 10 Feb 2026
314 points (95.6% liked)

Programmer Humor

29672 readers
818 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS