Introduction to OOP: Chapter 1: Thinking Object-Oriented:
Elements of OOP - Overriding
Subclasses can alter or override information inherited from parent classes:
- All mammals give birth to live young
- A platypus is an egg-laying mammal
(Actually, there are two different schools of thought on the issue
of how classes go about overriding behavior inherited from their
parent classes -
the ``Scandinavian'' school of OOP and the ``American'' school).
Intro OOP, Chapter 1, Slide 27
This completes the intuitive description of OOP concepts using the
story of sending flowers to my friend. We next examine how the OOP
world view constrasts with a more conventional view.