Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Use Interfaces
Message
De
08/01/2008 11:03:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
07/01/2008 22:37:16
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01278205
Message ID:
01280233
Vues:
44
>>>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.
>

It also enforces the signatures of any methods contained in the contract.
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform