Here is an example of overriding in Object Pascal. The function pay, which computes a pay given hours work, is overridden in the subclass SalaryEmpolyee. This is indicated by the keyword override.