Create two classes named Mammals and Marine Animals. Create another class named BlueWhale which inherits both the above classes and have only one function named showWhaIe() which shows "I belong to both the categories. Create a function print() in each of Mammals and MarineAnimals classes which prints "I am mammal", "I am a marine animal" respectfully. Now, try to answer the following questions:
Attachments:
![](https://hi-static.z-dn.net/files/dcb/005caa8a7d518bfebbbbd8da2574b30f.jpg)
Answers
Answered by
0
Answer:
your answer mate hope it helps you
Attachments:
![](https://hi-static.z-dn.net/files/dae/da2a0aec734e3edd6b545c0c3ebb2e65.jpg)
Similar questions