overridef.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 35 行
VB
35 行
'Author:' V. Sudharsan (vsudharsan@novell.com)'' (C) 2005 Novell, Inc.Imports SystemClass base Public Overridable ReadOnly Property Item(ByVal i As Integer) As Integer Get Return i End Get End PropertyEnd ClassClass derive Inherits base Public Overrides ReadOnly Property Item(ByVal i As Integer) As Integer Get Return 2 * i End Get End PropertyEnd ClassModule DefaultA Function Main() As Integer Dim a As derive = New derive() Dim i As Integer i = a.Item(10) If i <> 20 Then System.Console.WriteLine("Default Not Working") : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?