(
Public Class Car
Inherits Vehicle
Public Sub New()
_wheels =
_topSpeed =
_warningSound =
End Sub
End Class
(
Public Class Bike
Inherits Vehicle
Public Sub New()
_wheels =
MyBase
_warningSound =
End Sub
End Class
(
Public Class Skateboard
Inherits Vehicle
Public Sub New()
_wheels =
_topSpeed =
End Sub
Public Overrides Function Warning() As String
Return
End Function
End Class
在End Sub和End Class之間輸入以下代碼
Public Overrides
現在按下空格鍵
[
From:http://tw.wingwit.com/Article/program/net/201311/14582.html