Hacker News new | ask | show | jobs
by _old_dude_ 580 days ago
Very true, in Java, at least in the last 20 years, inheritance is de-facto deprecated, all new bits and bolts like enums, annotations, lambdas or records do not support inheritance.

So you have to use composition.