Lecture overview -- Keyboard shortcut: 'u'  Previous page: Type test and type conversion in C# -- Keyboard shortcut: 'p'  Next page: Virtual methods 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 34 : 40

Examples of type test and type conversion

Concrete BankAccount examples of type test and type conversions

Systematic use of v is C, (C)v, and v as C on bank account classes

ex1.cs
An illustration of dynamic type run-time check with v is C.
ex1-output
Output of dynamic type run-time checking program .
ex2.cs
An illustration of type casting (C)v.
Go to exercise
Casting of BankAccounts
ex3.cs
An illustration of type conversion with v as C.
ex3-output
Output of dynamic type type conversion program .
Go to exercise
Static and dynamic types