Introduction to OOP: Chapter 14 : Polymorphism [next] [previous] [audio] [real] [text]

Type Signatures

Selection of which procedure to execute is made based on types of arguments.

We say the type signature determines the procedure to execute.

C++ even allows functions in the same scope to have same name, as long as type signature is different.

stream << integer;
stream << char;
stream << char *;
stream << double;
stream << complex;
Intro OOP, Chapter 14, Slide 9