NotOverridable Prohibits overriding of the member. This is
NotOverridable Prohibits overriding of the member. This is the default for Public members of a class. MustOverride Must be overridden. When this keyword is used, the member definition is restricted to just the declaration line, with no implementation and no EndSub or EndFunction line. For example: Public MustOverride Sub IncSalary( ) Note also that when a class module contains a MustOverride member, then the class itself must be declared as MustInherit. Overrides Unlike the other modifiers, this modifier belongs in the derived class and indicates that the modified member is overriding a base class member. For example: Overrides Sub IncSalary( ) 3.4.3 Rules of Inheritance In many object-oriented languages, such as C++, a class can inherit directly from more than one base class. This is referred to as multiple inheritance . VB .NET does not support multiple inheritance, and so a class can inherit directly from at most one other class. Thus, code such as the following is not permitted: ‘ Executive Class Public Class CExecutive ‘INVALID Inherits CEmployee Inherits CWorker . . . End Class On the other hand, Class C can inherit from Class B, which, in turn, can inherit from Class A, thus forming an inheritance hierarchy. Note also that a class can implement multiple interfaces through the Interface keyword. We discuss this issue later in this chapter. 3.4.4 MyBase, MyClass, and Me The keyword MyBase provides a reference to the base class from within a derived class. If you want to call a member of the base class from within a derived class, you can use the syntax: MyBase.MemberName where MemberName is the name of the member. This will resolve any ambiguity if the derived class also has a member of the same name. The MyBase keyword can be used to call the constructor of the base class in order to instantiate a member of that class, as in: MyBase.New(…) Note that MyBase cannot be used to call Private class members.
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Virtualwebstudio jsp web hosting provider