Completed implementation of polymorphism such that functions can be overwritten in deriving classes.

OOP features missing:
Access validation.