📄 inheritanceg.vb
字号:
Imports System'Testing a class that inherits from an inner class of another classClass C2 Class C3 Public Function F() As Integer Return 1 End Function End ClassEnd ClassClass C1 Inherits C2.C3 Public Function F1() As Integer Return F() End FunctionEnd ClassModule Inheritance Function Main() As Integer Dim myC As New C1() Dim a As Integer = myC.F1() If a <> 1 Then System.Console.WriteLine("InheritanceG:Failed - Error inheriting an inner class") : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -