Skateboard類也不同
Public Class Skateboard
Inherits Vehicle
Public Sub New()
_wheels =
_topSpeed =
End Sub
Public Overrides Function Warning() As String
Return
End Function
End Class
該構造函數設置了輪子和最高時速的值
這些類的使用非常簡單
Dim MyTransport As New Car()
Label
Label
Label
該代碼段簡單地創建了一個新類
ASP
[
From:http://tw.wingwit.com/Article/program/net/201311/14579.html