What is shadowing?

Answers were Sorted based on User's Feedback



What is shadowing?..

Answer / 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

What is shadowing?..

Answer / satya

Shadowing :- This is a VB.Net Concept by which you can
provide a new implementation for the base class member
without overriding the member. You can shadow a base class
member in the derived class by using the keyword Shadows .
The method signature access level and return type of the
shadowed member can be completely different than the base
class member.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What is slidemaster?

0 Answers  


33) You create English, French, and German versions of your ASP.NET application. You have separate resource files for each language version. You need to deploy the appropriate resource file based on the language settings of the server. What should you do? A . Create an installer and set the Installer.Context property for each version of your application. B . Create an installer that has a launch condition to verify the locale settings. C . Create an installer that has a custom action to install only location-specific files. D . Create an installer that has an MsiConfigureProduct function to install the appropriate version.

2 Answers   Friedkin, ISH, Syntax, Syntax Softtech,


How many web.config files in each solution

10 Answers   General Mills,


When we do partial refresh of a page using update panel how server knows it(which event occurs?)

2 Answers  


How does a web application session work?

0 Answers  






How to convert a string into an Integer in ASP.net?

12 Answers  


What are the validation controls ?

1 Answers  


Tell me Asp.net Method Overriding.

3 Answers  


What is asp.net mvc5? : Asp.Net MVC

0 Answers  


What is a session in programming?

0 Answers  


What are typed datasets?

1 Answers   IBS,


What is HTTP MODULE & HTTP HANDLERS in ASP.NET? How a developer can utilize in the application? Please provide example.

1 Answers   IBM,


Categories