July 2015
Intermediate to advanced
1300 pages
87h 27m
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 the member as Overridable. Let’s continue the example of the Person class, defined as follows:
Public Class Person Public Property FirstName As String Public Property LastName As String 'Simplified ...