Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Use Interfaces
Message
De
08/01/2008 04:36:54
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01278205
Message ID:
01280159
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform