Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Use Interfaces
Message
From
08/01/2008 04:36:54
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01278205
Message ID:
01280159
Views:
12
>Playing devil's advocate again..
Same here...

>This is true regardless of whether or not my class implements an interface. I could
>create a CompareTo method on any class that does all of this without the expense of
>attaching my class to an interface


One of the nicer things interfaces give you in this context is the ability to define several IComparable interfaces, for instance for comparing last names, adresses, zip codes and so on and work polymorphically from than on.

HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform