C++ Inheritance and Coercion example.