|
|
|
|
|
by giamma
402 days ago
|
|
To me (as a Java programmer) inheritance is very useful to reuse code and avoid copy paste. There many cases in which decorators or template methods are very useful and in general I find it "natural" in the sense that the concepts of abstraction and specialization can be found in plenty of real world examples (animals, plants, vehicles etc etc). As usual there is no silver bullet, so it's just a tool and like any other tool you need to use it wisely, when it makes sense. |
|