interfaceinheritance2.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 29 行
VB
29 行
Class InterfaceInheritance2 Interface IBase Function Method() As Integer End Interface Interface IIntermediate1 Inherits IBase End Interface Interface IIntermediate2 Inherits IBase End Interface Interface IDerived Inherits IIntermediate1, IIntermediate2 End Interface Class Consumer Implements IDerived Function Method() As Integer Implements IBase.Method Return 0 End Function End Class Shared Function Main() As Integer Dim c As New Consumer Dim i As IDerived i = c Return i.Method End FunctionEnd Class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?