this post was submitted on 10 Feb 2026
327 points (95.8% liked)
Programmer Humor
29709 readers
1896 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I like interfaces as a supplement to inheritance. The strength of inheritance is getting all of the internal functionality of the parent class, while still allowing you to differentiate between children.
Interfaces are useful for disparate classes which don't have much in common besides fitting within a specific use case, rather than classes that are very similar to each other but need specific distinguishing features.