Title: Polymorphism Book Examples
Course: CPS 161: An Intro to Programming with Java - DL MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Polymorphism Book Examples lecture video (Time: 22:00)
- Polymorphism Book Examples document

- Textbook Example: LateBindingDemo.java uses Sale.java and Discount.java and demonstrates polymorphism(i.e. Late binding).
- Textbook Example: StaticMethodsDemo.java uses Sale.java and Discount.java demonstrates early binding used with static methods(i.e. the Compiler makes the decisions).
- Textbook Example: CopyingDemo.java - demonstrates 2 approaches to making a copy of an array. The better approach illustrates the usage of a clone routine.
- Textbook Example: reworking the Employee class to be an abstract class with an abstract method called getPay.