Differing implementations for a function in two interfaces

Lionello Lunesu lio at lunesu.remove.com
Mon Apr 17 03:47:45 PDT 2006


Ryan Steen wrote:
> In article <e1vlnb$226i$1 at digitaldaemon.com>, Lionello Lunesu says...
>> IA might be an interface for the 
>> output/GUI and IB for the input.
> 
> Yes, but what might cause the need to have the implementation in one class?
> 
> And if there is really a need what hinders a virtual split of that implenting
> class?
> 
> IA --> CA <-- C --> CB <-- IB
> 
> where --> and <-- denote inheretance?
> 
> 

Can't inherit from 2 classes, only interfaces ;)

L.



More information about the Digitalmars-d-learn mailing list