May 2010
Intermediate to advanced
1272 pages
61h 18m
English
When a class derives from another one, it inherits members, and the members behave as they are defined in the base class. (For this purpose remember the scope). As for other .NET languages, Visual Basic enables redefining inherited methods and properties so that you can change their behavior. This technique is known as overriding and requires a little work on both the base class and the derived class. If you want to provide the ability of overriding a member, in the base class you have to mark such member as Overridable. Let’s continue the example of the Person class, defined as follows:

The goal is providing derived classes ...
Read now
Unlock full access