Algorithms and OOD (CSC 207 2014S) : Outlines

Outline 14: Interfaces and Polymorphism


Held: Tuesday, 11 February 2014

Back to Outline 13 - Some Subtleties: References and Automatic Boxing/Unboxing. On to Outline 15 - Inheritance.

Summary

We consider polymorphism, a powerful tool for code reuse (and generalization). In essence, polymorphism says that we can use different kinds of objects for the same purpose, provided they have needed charactistics.

Related Pages

Overview

Administrivia

Interfaces

Polymorphism

Warning: There is some gap between the ideal of polymorphism and its implementation in many languages, including Java.

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.