Interface members are sometimes referred to by their fully qualified name. The fully qualified name of an interface member consists of the interface name, followed by a dot, followed by the member name. When an interface is part of a namespace, the fully qualified name of an interface member includes the namespace name.
Interface IUserInterface1
Sub Test();
End Interface;
Interface IUserInterface2
Sub Test();
End Interface;
Class UserObject: IUserInterface1, IUserInterface2
Sub IUserInterface1.Test();
Begin
//Method implementation
End Sub;
Sub IUserInterface2.Test();
Begin
//Method implementation
End Sub;
End Class;
Sub Test();
Var
Obj: UserObject = New UserObject();
Begin
//Invoke two different Test methods
(Obj As IUserInterface1).Test();
(Obj As IUserInterface2).Test();
End Sub;
See also: