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 and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 31 : 40
Object-oriented Programming in C#
Specialization, Extension, and Inheritance
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