Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access