As we have just mentioned, properties (attributes and methods) are automatically inherited
by subclasses from their superclasses. However, it is possible to redefine a property in the
subclass. In this case, the definition of the property in the subclass is the one used. This
process is called overriding. For example, we might define a method in the Staff class to
increment salary based on a commission: