Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Use Interfaces
Message
From
08/01/2008 11:03:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
07/01/2008 22:37:16
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01278205
Message ID:
01280233
Views:
23
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform