Answer Posted / rohatash
there are overloaded methods in the base class, & u
marks one of the methods as shadows using the keyword
shadow in the derived class, then we cannot access the
overloaded methods.
Module Module1
Class A
Public Sub Show()
Console.WriteLine("Calling from A")
End Sub
End Class
Class B
Inherits A
Public Shadows Sub Show()
Console.WriteLine("Calling from B")
End Sub
End Class
Class C
Inherits B
Public Shadows Sub Show()
Console.WriteLine("Calling from C")
End Sub
End Class
Class Test
Public Shared Sub Main()
Dim x As A
x = New A()
x.Show()
x = New B()
x.Show()
x = New C()
x.Show()
End Sub
End Class
End Module
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the strong name in .net assembly?
What is the difference between custom control and user control?
What is the purpose of an Assembly?
What is difference between import system.data.sqlclient,system.data.oledb?
How many languages are supported by .net?
What is misl code?
Tell me how many .net languages can a single .net dll contain?
Name and explain some of the exclusive features which are present in vb?
What is the differnce between managed code and unmanaged code?
What are jagged arrarys ?
Explain manifest?
Explain the components of common language runtime.
What is static member?
How to run a dos command in vb.net?
What is the significance of delegates. Where should they be used?