What is shadowing?

Answer Posted / shalini

When two programming elements share the same name, one of
them can hide, or shadow, the other one. In such a
situation, the shadowed element is not available for
reference; instead, when your code uses the shared name,
the Visual Basic compiler resolves it to the shadowing
element.
Shadowing through inheritance is hiding a method of a
base class and providing a new implementation for the same.
This is the default when a derived class writes an
implementation of a method of base class which is not
declared as overridable in the base class. This also serves
the purpose of protecting an implementation of a new method
against subsequent addition of a method with the same name
in the base class.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain culture and uiculture values.

534


What is an asp.net web form?

618


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

594


What is view state management in asp net?

459


What is the difference between trace and debug in asp.net?

604






Can we use MSSql as backend in asp.net...if yes then How.?

577


Write a code for passing ArrayList in Web API?

1046


How many ways are there to maintain a state in .net? What is view state?

582


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

530


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

551


Can you explain composite pattern?

582


What is asp net application object?

530


What is advantage of code behind coding in ASP.NET?

552


What do you mean by query string?

511


What are the various types of cookies in asp.net?

532