Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overriding and Hiding in C# -- Keyboard shortcut: 'p'  Next page: Static and dynamic types in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Specialization, Extension, and Inheritance - slide 31 : 40

Polymorphism. Static and dynamic types
Polymorphism and appropriate use of dynamic binding is the OOP crown jewels in relation to inheritance

Polymorphism stands for the idea that a variable can refer to objects of several different types

The static type of a variable is the type of variable, as declared

The dynamic type of a variable is type of object to which the variable refers

Dynamic binding is in effect if the dynamic type of a variable v determines the operation activated by v.op(...)

Dynamic binding is obtained by virtual methods