Skip to main content
  1. Notes/

Ad-hoc Polymorphism

  • several versions of a function
  • selection depending on argument types

Advantages:

  • flexible

Disadvantages:

  • one has to write a separate function for every type
  • program can become harder to understand