Inheritance in VB.NET

VB.NET supports a single inheritance model. Thus a class may derive from a single base class, and not from more than one. (In fact, as we saw in the previous chapter, every class in VB.NET ultimately derives from the root class System.Object.[3] This single inheritance model is simple and avoids the complexities and ambiguities associated with multiple inheritance, as in C++. Although a VB.NET class can inherit only from a single base class, it may inherit from several interfaces, a topic we will discuss in the next chapter.

[3] In previous versions of VB, the Variant type represented the universal data type. In VB.NET, the Object class is the universal data type. The Variant type is no longer supported in VB.NET. Variant ...

Get Application Development Using Visual Basic® and .NET 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.