posted 12 years ago
It's not the classes that implement the interface that are getting the code reusability. It's the classes that are using the interface.
For example, we have interface Shape, and implementations Triangle and Square.
So the implementation code is different, but because they both implement Shape I'm allowed to do this
instead of doing this
The point is that I don't have to know what kind of Shape I'm working with to use the Shape type in a general way; code reuse is all in the implementation.
Everything is theoretically impossible, until it is done. ~Robert A. Heinlein