You didn't specify what language interests you, or if you're just interested in OOP generally.
Overriding is used in a class that
subclasses another class to
replace or
augment the functionality of a method, event or property of the parent class.
For example, in the
article that I published yesterday[
^],
HighlightFilter
subclasses
Filter
and overrides the
OnFilter
method in order to add additional functionality that isn't implemented by the base class (see the class diagram).
See also:
Inheritance (C# Programming Guide)[
^]
Polymorphism (C# Programming Guide)[
^]
These concepts are common to all object-oriented programming languages (OOP).