Multiple Inheritance Program Using Switch