Below is a class hierarchy. Arrows point from the child to the parent class:
Write a program representing this structure. You don't need to define any methods in the classes. In the case of multiple inheritance, parent classes can be listed in any order.