Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Use Interfaces
Message
From
07/01/2008 22:37:16
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01278205
Message ID:
01280128
Views:
32
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform