Inspection Details

ImplementedInterfaceMember


Summary
Identifies class modules that define an interface with one or more members containing a concrete implementation.
Reasoning
Interfaces provide an abstract, unified programmatic access to different objects; concrete implementations of their members should be in a separate module that 'Implements' the interface.
The following code example(s) would trigger this inspection:

Option Explicit
'@Interface
Public Sub DoSomething()
    MsgBox "Hello from interface!"
End Sub

The following code example(s) would not trigger this inspection:

Option Explicit
'@Interface
Public Sub DoSomething()
    ' empty interface stub
End Sub


Back to List