Implements Clause (Visual Basic)


Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Indicates that a class or structure member is providing the implementation for a member defined in an interface.

The Implements keyword is not the same as the Implements Statement. You use the Implements statement to specify that a class or structure implements one or more interfaces, and then for each member you use the Implements keyword to specify which interface and which member it implements.

If a class or structure implements an interface, it must include the Implements statement immediately after the Class Statement or Structure Statement, and it must implement all the members defined by the interface.

In a derived class, you can reimplement an interface member that the base class has already implemented. This is different from overriding the base class member in the following respects:

  • The base class member does not need to be Overridable to be reimplemented.

  • You can reimplement the member with a different name.

The Implements keyword can be used in these contexts:

Event Statement

Function Statement

Property Statement

Sub Statement

Implements Statement
Interface Statement
Class Statement
Structure Statement