Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Overriding
Message
From
09/05/2007 11:26:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
09/05/2007 11:04:27
Takashi Koyama
National Indemnity Company
Omaha, Nebraska, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01223779
Message ID:
01223799
Views:
15
>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform