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
Explain diff. Between friend and protected friend?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is the difference between c# and .net?
What is the difference between session and viewstate?
What is viewstate in asp net with example?
Define a static class?
Name the namespace which is used by ado.net?
What is base class of .net?
How to find out what version of asp.net I am using on my machine?
What is bson in web api?
Can we use html in asp.net?
How do we assign page-specific attributes?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
Describe session handling in a webfarm, how does it work and what are the limits?