4 ms·
It's the same story in Java - inheritance used to be the first sledgehammer you reached for whenever you saw a nut, but these days it's barely used. Effective J
by twic 10y ago
It's the same story in Java - inheritance used to be the first sledgehammer you reached for whenever you saw a nut, but these days it's barely used. Effective Java, the definitive text on the proper way to write Java, tells you to avoid inheritance [1], and that was published in 2008.
[1] https://books.google.co.uk/books?id=ka2VUBqHiWkC&lpg=PA81&ots=yZKnNlq0T0&dq=effective%20java%20inheritance&pg=PA81#v=onepage&q=effective%20java%20inheritance&f=false https://books.google.co.uk/books?id=ka2VUBqHiWkC&lpg=PA81&ot...