Conditioning Inheritance

Inheritance is an important feature in OOP with .NET. You might have situations in which inheritance is not a good option, for example, when you want to prevent others from accessing members in the base class. Or there could be custom frameworks implementations in which a high-level class should not be used directly, and therefore it should be always inherited. The Visual Basic language enables accomplishing both scenarios via special keywords, as discussed in the next section.

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.