Lecture overview -- Keyboard shortcut: 'u'  Previous page: Examples of type test and type conversion -- Keyboard shortcut: 'p'  Next page: Practical use of 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 35 : 40

Virtual methods in C#
A systematic illustration of the modifiers virtual, override, and new
virt.cs
An illustration of virtual and new methods in class A and B.
virt-simplified.cs
An illustration of virtual and new methods in class A and B - Simplified.
virt-output
Output from the program that illustrates virtual and new methods.
virt-more-simplified.cs
An illustration of virtual and new methods - More simplified.
virt-output-more-simplified
Output from the more simplified program.

Virtual methods use dynamic binding

Properties and indexers can be virtual in the same way as methods