16,554
社区成员
发帖
与我相关
我的任务
分享
Public Class TestFrm
Implements ITest
Public Sub Main()
Dim t As New TestClass
t.Main()
End Sub
Private _strPrint As String = "TestData"
Private Property aaaa As String Implements ITest.strPrint
Get
Return _strPrint
End Get
Set(value As String)
_strPrint = value
End Set
End Property
End Class
Public Class TestClass
Public Sub Main()
Dim f As New TestFrm
Dim t As ITest = f
Debug.Print(t.strPrint)
End Sub
End Class
Public Interface ITest
Property strPrint As String
End Interface