What is shadowing?
Answers were Sorted based on User's Feedback
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 |
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 |
How to upload a file using file upload control inside the Update Panel???
How do we sort the data from a dataset?
How can you pass multiple complex types in Web API?
What is the difference between Session and response.Redirect?
Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one
How can we create Tree control in asp.net?
Do gac'ed assemblies have fulltrust?
What is the parent class of all the web server control?
What are the different authentication modes in the .NET environment?
Where do you store the information about the user?s locale?
What is marshalling ? Is it a part of asp.net ?
Why session is more secure than cookies?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)