News for hackers. Stuff that matters.
Re:If Inheritance is so bad, why does everyone use it? by neonroku on Thursday April 11, 2024 @04:06AM (#39999585)
Depends on how you use it, but in Java I prefer to use interfaces and no subclassing. I find classes with abstract methods hard to reason about, and much prefer to leverage Functions/lambdas where possible.

There are no comments on this comment yet.