Interface that Inherits another Interface syntax

bri189a

Well-known member
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 dont show ITest2, so I cant 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...its obvious), but I cant seem to figure out the right syntax to do this and havent had much help with MSDN getting me past this point.

Thanks!

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