Interfaces in Visual Basic

Interfaces define the properties, methods, and events that classes can implement. Interfaces allow you to define features as small groups of closely related properties, methods, and events; this reduces compatibility problems because you can develop enhanced implementations for your interfaces without jeopardizing existing code. You can add new features at any time by developing additional interfaces and implementations.

In previous versions of Visual Basic, you could consume interfaces but not create them directly. In this version, you can use the Interface statement, which allows you to define true interfaces as distinct entities from classes, and to implement them with an improved version of the Implements keyword.

In This Section

  • Inheritance in Visual Basic
    Describes how Visual Basic supports inheritance, allowing you to define classes that serve as the basis for derived classes.