Close
Close Window

Masters of Engineering Bridge Course

Chapter 7 Testing and Exceptions

Show Source |    | About   «  7.3. Objects, Enums, and UML Diagrams   ::   Contents   ::   7.5. Unit 7 Lab 1 Placeholder  »

7.4. More on Polymorphism

7.4.1. Objectives

  • Review Java Interfaces and Abstract Classes

  • Review Inheritance and Composition

  • Review Overloading and Overriding

  • Review Reference Variables

  • Apply Typecasting

7.4.2. Interactive: Polymorphism Measurable Interface [7:23]

7.4.2.1. Polymorphism Example Code

Try It Yourself

In Eclipse, use the Project > Download Assignment… menu command to download the exercise project named “ex07.04-MeasurableInterface”. Use this example to follow along with the following video. Feel free to experiment.

Refer to 01.02: Lab: LightBot for Beginners if you need to review the instructions for downloading Eclipse projects.

Video Slides 7.4.2.1-JavaOOPPolyMeasurable.pdf

7.4.3. Checkpoint 1

7.4.4. Programming Practice: Polymorphism 1

7.4.5. Interactive: Polymorphism Computer Superclass [12:09]

Follow Along and Engage

Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself!

Video Slides 7.4.5-JavaOOPPolyComputer.pdf

7.4.6. Checkpoint 2

7.4.7. Interactive: Polymorphism Integer Example [7:40]

Follow Along and Engage

Download the slides corresponding to the video. Take notes on them as you watch the video, practice drawing diagrams yourself!

Video Slides 7.6.7-JavaOOPPolyInteger.pdf

7.4.8. Checkpoint 3

7.4.9. Programming Practice: Polymorphism 2

   «  7.3. Objects, Enums, and UML Diagrams   ::   Contents   ::   7.5. Unit 7 Lab 1 Placeholder  »

Close Window