Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is shadowing?

Answer Posted / rohit

Whatever the code written by Sonia.sardana is shows the
shadowing concept but there is some print mistakes in the
code.The correct code is---


imports system
module m1
public class base
Public Sub test()
Console.WriteLine("sonia")
End Sub

Public Sub test(ByVal i As Integer)
Console.WriteLine(i)
End Sub

End Class

Public class derived
inherits base

Shadows Sub test(ByVal x As Integer)
Console.WriteLine("Shadow method")
End Sub
end class


Sub main()
Dim obj As New derived
obj.test() 'This will show error
obj.test(10) 'This is valid
End Sub

end module

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to store decimal data in .net?

1182


What are the difference between dispose(), close(), exit(), end()?

908


What is the maximum size of the textbox?

1001


What is the advantages of VB.NET?

1048


What is the difference between convert.tostring and .tostring() method?

1030


Is vb.net a programming language?

993


Explain about globalization?

883


Name some different types of control?

974


What is the difference between compiler and interpreter?

1034


How would you implement inheritance using vb.net?

922


Explain the difference between system.string and system.stringbuilder classes?

1003


What keyword is used to accept a variable number of parameter in a method?

1031


Using VB, how can you change the Mouse Pointer?

1116


What is sorting in vb?

919


Did vb6 support multi-threading ?

959