Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Use Interfaces
Message
De
12/01/2008 01:13:08
 
 
À
11/01/2008 10:26:00
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01278205
Message ID:
01281305
Vues:
25
>Having an interface inheriting from another is your choice. You might have a IFileSend interface. And when you designed it Email was the only requirement. Now certain classes will need to be FTP'ed.
>
>I've seen it both ways, where the author created another interface IFileSendFTP and either inherited the IFileSend interface, so your classes only needed to implement the IFileSendFTP. Or the interfaces were kept separate and the classes implemented both.


Perry, anything that implemented the IFileSendFTP would still need to implement the interface of the IFileSend as well. Otherwise, what's the point of inheriting IFileSend?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform