2 ms·
Java doesn't have multiple inheritance, so if you want to avoid writing the same behavior twice you instead get to write several interfaces describing the abili
by anonymoushn 14y ago
Java doesn't have multiple inheritance, so if you want to avoid writing the same behavior twice you instead get to write several interfaces describing the ability to do the behaviors and write several functions in each class that implements such an interface (but does not contain the implementation) calling the functions defined in the interface on its pet InterfaceImpl.
This is probably a worthwhile tradeoff, but checking in hundreds of lines of code that do literally nothing is still a bad place to be.
- pfraze 14y agoAh, that's right-- interfaces don't give implementation. So yeah, Armstrong's criticism stands.
- UnFleshedOne 14y agoIn C++ they do. In C++ anything goes. <insane laughter>