Public Class ClassX
Public s As String = "x"
End Class
Public Class ClassY
Inherits ClassX
Public Shadows s As String = "y"
Public Function getDerivedS() As String
Return s
End Function
Public Function getBaseS() As String
Return MyBase.s
End Function
End Class