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 difference between import system.data.sqlclient,system.data.oledb?
What are the shared variables?
what is difference between namespace and assembly?
Explain cls?
What is the use of errorprovider control?
List the two main parts of .net?
Explain about the feature anonymous type?
Name the tool which can convert visual basic old version to .net compatibility version?
how to deploy vb.net with key and evaluation time? any one can help me?
What are the advantages of an assembly?
Why do we use byref keyword in vb.net?
What are the differences between c# and visual basic.net?
What is sorting in vb?
Explain about jagged arrarys ?
What do you mean by serialization and deserialization and it's use.