Differing implementations for a function in two interfaces

Lionello Lunesu lio at lunesu.remove.com
Mon Apr 17 02:04:42 PDT 2006


Ryan Steen wrote:
> In article <e1vci0$1luu$1 at digitaldaemon.com>, Lionello Lunesu says...
>> They are completely unrelated.
>> Now what? Redesign the whole app and make multiple classes?
> 
> Yes. Such design is flawed: to implement two completely unrelated interfaces in
> one single class.
> 
> 

I don't agree. The interfaces might be unrelated, but they can still 
both apply to the class needing them. IA might be an interface for the 
output/GUI and IB for the input.

L.



More information about the Digitalmars-d-learn mailing list