|
|
|
|
|
by ncmncm
1653 days ago
|
|
Inheritance is flawed, in Java, mainly because it is the only organizing principle offered, so gets shoehorned into all kinds of problems where it is a poor fit. Inheritance is just the right thing once in a while, but Java coders are obliged to apply it well beyond its useful range. |
|
Fortunately nowadays, records and sealed classes remedy this for the most part in java.