In C#, you must use the override
keyword to override functions.
If you use override
without a matching virtual
or abstract
base function, you'll get a compiler error.
If you don't use override
, and there is a matching base function, you'll get a compiler warning (unless you add new
).