<<< Java and Multiple Inheritance | Index | >>> |
For example,
You found a suitable interface in existing Java software: it already has 10 functions.
Of these 10 functions you may need only 3. However, you are forced to implement all of the functions simply because Java forces you to do so.
Solution 1: keep the interfaces small.
Impractical solution 2: hope that one day Java will have default method implementation...
<<< Java and Multiple Inheritance | Index | >>> |