3-17.aspx

来自「程序源代码分成两个部分: &#61557 一部分是用记事本或EditPlus」· ASPX 代码 · 共 25 行

ASPX
25
字号
Public Class Employee
	Private name As String
	Private age As Integer
	Private salary As Single
	Public Sub New(ByVal n As String, ByVal a As Integer, ByVal s As Single)
		name = n
		age = a
		salary = s
	End Sub
	Public Function GetName()
		Return  name		
	End Function
End Class
Public Class Director
 	Inherits Employee 
	Private Title As String 
	Sub New(ByVal t As String,ByVal n As String , ByVal a As Integer , ByVal s As Decimal)
		MyBase.New(n , a , s )
 		Title = t
	End Sub
	Public Function GetTitle()
		Return  Title		
	End Function
End Class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?