VB.Net Tutorial/Class Module/NotOverridable
Версия от 16:40, 26 мая 2010; (обсуждение)
NotOverridable
Public Class Base
Public Overridable Function greet() As String
Return "Greeting from the Base!"
End Function
End Class
Public Class Derived1
Inherits Base
Public Overrides Function greet() As String
Return "middle greet"
End Function
End Class
Public Class Derived2
Inherits Derived1
Public NotOverridable Overrides Function greet() As String
End Function
End Class
Public Class bottom
Inherits Derived2
End Class