Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Use Interfaces
Message
De
07/01/2008 22:37:16
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01278205
Message ID:
01280128
Vues:
49
>>Well, I am all for respecting contracts that you sign, but I don't think that IWhathever, in itself, enforces keeping the contract.
>- interfaces can be very useful, but they are not enforcing contracts, just because they do not have implementation.

The contract *is* enforced when you use an Interface. It will not compile if you do not implement the properties/methods indicated by the Interface. That's what enforces the contract.

~~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