December 2002
Beginner to intermediate
432 pages
10h 10m
English
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 ...
Read now
Unlock full access