Inheritance

VB supports full inheritance as per the OOP specification. It does not support multiple inheritance. Multiple inheritance is where a class can inherit from more than one base class, effectively merging the functionality of the two. There has been much discussion in academic circles as to whether this should even be included in the OOP specification. It can be confusing and even dangerous so Microsoft left it out of VB. It is available in C++ if you really must use it. To create a class that inherits from a base class use the Inherits keyword in the declaration of a class.

Public Class MyClass 
  Inherits System.Windows.Forms.Form 

End Class 

This class declaration creates a class called MyClass, which inherits the Windows.Forms.Form ...

Get ADO.NET Programming in Visual Basic™ .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.