Add a c++ inheritance example

The example shows what is the difference between overriding a function
and hiding it.