What is the difference between the override
and new
keywords in C# when defining methods in class hierarchies?
Looks like an old question, let me try a different answer:
new
: as the name says, it is a new member in the family of inheritance hierarchy and this will be used as base member for further down the chain (if marked as virtual).
override
: It means I don't accept my parent class' member implementation and I will do differently.