Hybrid Inheritance In Cpp