Lecture 5 - Slide 7 : 40
Examles with virtual functions

We show an example that involves virtual functions

virtual-1-simplified.cc
Virtual versus non-virtual functions in an AB class hierarchy - relative to illustration on the previous slide.
virtual-1-simplified-output
Program output.

I C++11 it is recommended always to use the (contextual) keyword override to state your intension of overriding a virtual member function

override is a redundant means of expression, intended to cath errors as early as possible