No Inheritance Support

Modules cannot inherit from other modules or classes or be inherited. Therefore, the Inherits, NotInheritable, and MustInherit keywords are not supported by modules.

Inheritance and Shared Members

Although it is not a good programming practice, it is legal to create a NotInheritable Class that exposes only shared members.

Get Visual Basic 2015 Unleashed 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.