4 ms·
The problem is you really want to inherit the implementations as well -- otherwise every one of the classes that use the Isin interface must implement its stora
by colomon 14y ago
The problem is you really want to inherit the implementations as well -- otherwise every one of the classes that use the Isin interface must implement its storage and accessors as well.
- gboyer 14y agoYou can just do both, though. Use interfaces for polymorphism, to define the interactions between your objects -- and then, if you want, use inheritance as one possible strategy for code reuse.