Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

Why we use content place holder in

0 Answers  

I have a method written in WebForm (means .aspx page) & now I want to call this method in WebUserControl (means .ascx page) what should I have to do?

1 Answers   Patni,

What is synchronous and Asynchronous post back ?

0 Answers  

Can you please anyone explain in detailed Webservices concepts in

1 Answers  

Types of exceptions in dot net???

1 Answers   TCS,

What does a switch do?

0 Answers  

I create small website, i want accept all the browser this website? what will do?

1 Answers  

can we pass coditions in swtich case?

3 Answers  

What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData()

2 Answers   Syntax Softtech, winfoware,

how to debug web services on consumer side?

0 Answers   HCL,

Any disadvantages in Dataset and in reflection ?

0 Answers   DELL, Digital GlobalSoft,

What is the full form of

0 Answers