Quiz on C++ Inheritance