Interface that Inherits another Interface syntax

bri189a

Senior Contributor
Joined
Sep 11, 2003
Messages
1,004
Location
VA
Interface #2:
Public Interface ITest2
Function TestInterface2() As Boolean
End Interface

Interface #1:
Public Interface ITest
Inherits VBWebTest.ITest2
ReadOnly Property TestProperty() As Object
Sub TestNoReturnFunction()
Function TestReturnFunction() As Integer
End Interface

In Interface #1 how do I implement the TestInterface2 function of the inheritied inteface. I miss C# automatic addition of the stubs, and my drop down boxes don't show ITest2, so I can't just pick the method and have it put it. I tried just matching the signature but that told me I need to use the Shadows keyword (and I understand why...it's obvious), but I can't seem to figure out the right syntax to do this and haven't had much help with MSDN getting me past this point.

Thanks!

 
Okay, I figured it out; I don't have too... duh! When the class that implements TestInterface2 he'll be left to implement the methods from TestInterface and TestInterface2 from there... you don't implement in an interface! Don't know what I was smoking on that one; had to do it C# to get my brain working right. :)
 
Back
Top