C# – Keyword usage virtual+override vs. new
I always find things like this more easily understood with pictures: Again, taking joseph daigle’s code, public class Foo { public /*virtual*/ bool DoSomething() { return false; } } public class Bar : Foo { public /*override or new*/ bool DoSomething() { return true; } } If you then call the code like this: Foo … Read more