Differing implementations for a function in two interfaces
    Ryan Steen 
    Ryan_member at pathlink.com
       
    Tue Apr 18 01:20:15 PDT 2006
    
    
  
In article <e21vvd$1sv1$1 at digitaldaemon.com>, Lionello Lunesu says...
>#void main() {
>#  C c = new C;
>#//  c.get();//error, ambiguity
>#  c.IA.get();//OK, calls IA.get
>#  c.IB.get();//OK, calls IB.get
>#}
This example seems somehow flawed.
Interfaces are in the role of assuring access to some and denying access to some
other public features of the implementation, don't they?
But if one has full access to the implementation as above, then their denials
are ineffective. Therefore this cannot be the usual case.
    
    
More information about the Digitalmars-d-learn
mailing list