Sunday, 28 April 2013

What is the difference between Shadowing and Overriding ? | C#.Net Interview Questions

Following are the differences between shadowing and overriding :
Overriding redefines only the implementation while shadowing redefines the whole element.
In overriding derived classes can refer the parent class element by using “ME” keyword, but in shadowing you can access it by “MYBASE”.

No comments: