O'Reilly logo

ADO.NET Programming in Visual Basic™ .NET by Bob Howell, Steve Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required