C++ multiple inheritance examples