Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Overriding
Message
De
09/05/2007 11:26:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
09/05/2007 11:04:27
Takashi Koyama
National Indemnity Company
Omaha, Nebraska, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Divers
Thread ID:
01223779
Message ID:
01223799
Vues:
10
>Hello,
>I'm curious why VB.NET uses the Overrides, Overridable, NotOverridable, and MustOverride keywords to specify how methods and properties might or might not be overridden.
>
>In Java, it is not necessary to use those keywords to override a class.
>To me, Java way is simpler and clear to read codes.
>So Overrides, Overridable, NotOverridable, and MustOverride keywords are unnecessary in my mind.
>
>Any thoughts?

Not exactly. There are classes that I right where I know that I don't want to ever use the base class, so I declare it as MustOverride. This is a reminder for me, and a rule for anybody else using my class, that you must derive from it.

As far as the others, I have yet to use them, so I can't comment.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform