Search This Blog

Monday, June 1, 2009

Difference between shadow and override?


1) The main constraint on overriding is that it needs permission from the base class with the 'overridable' keyword. Shadowing does not require permission of base class.

2) Overriding redefines only the implementation while shadowing redefines the
whole element.

Shadowing nothing but Hiding

in C# by using New keyword we can achive Shadowing
Post a Comment

Popular Posts