Chapter 6 - Overrides and Polymorphism
« Return to the Table of Contents
While classes are a powerful tool for Software Engineering, the real power comes from the ability to alter the behavior in a derived class. This is accomplished by overriding members of the superclass in the subclass to change the behavior. This opens up a type of polymorphism which will allow us to write concise programs that behave differently based on the overridden member.