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
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com
what is common type system?
What is the difference between import system.data.sqlclient and system.data.oledb?
Explain redim keyword?
Explain trace in vb.net?
What is an application domain? how they get created?
Explain the advantages of migrating to vb.net?
Can you please explain the difference between value and reference types?
How a base class method is hidden?
what is the advantage of option strict on?
Tell us how many languages are supported by .net?
Explain the components of common language runtime.
Can we use Vb.Net and C# language simultaneously in one .Net application?
Write a program to find all text files in a logical drive and return the count of the number of files?