Example Declaration in Object Pascal

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.

[audio] [real] Text to accompany slide12, in Chapter 11 of An Introduction to Object-Oriented Programming