Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Abstract Classes
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00835368
Message ID:
00835460
Vues:
17
Hi Paul,

Thanks for the information.

Al

>
>I can give you one example where I've used an abstract class used. I've created an ASP.NET server-side control that knows how to display a paged list of items, with and without checkboxes next to them (and has a definite "XP" feel to it). By itself, the list doesn't do anything; it doesn't have enough information to generate the list if you were to use it by itself. It >has< to be subclassed and a few stub methods and properties need to be filled in before it will work.
>
>The list is an abstract class because of this - I don't want anyone thinking they can just create an instance of it (eg. dropping it on a form) and using it. By creating an abstract class, though, I've got a nice consistent (and easy) way of creating my paged lists. The interface is exactly the same in each subclass, and all of the "real" work is done by the abstract class.
Al Williams

Anola MB, CANADA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform