[first slide]

Introduction to Object Oriented Programming

Timothy A. Budd

Chapter 14

Polymorphism

Outline

  1. Definition
  2. Polymorphism in Programming Languages
    1. Polymorphism in untyped languages
  3. Forms of Polymorphism
    1. Polymorphic variables
    2. Overloading
      1. Florist Example from Chapter 1
      2. Type Signatures
    3. Overriding
      1. Subclasses of Magnitude in Little Smalltalk
      2. Example - from class Magnitude
      3. Overridden Methods
      4. Frameworks
      5. An Upside Down Library
      6. Portable Algorithms
    4. Deferred Methods
      1. Deferred Method in C++
    5. Pure Polymorphism
      1. Smalltalk Example
    6. Generics and Templates
  4. Efficiency and Polymorphism

Other Material

Intro OOP, Chapter 14, Slide 1