Multi level Inheritance Java

In the earlier, Bird-Ostrich inheritance program, Ostrich extends only one class, Bird, because Ostrich wants to walk and the method is there in Bird’s class. Now Ostrich also wants to eat but the eat() method is there in another class Animal. Now, it is required to Ostrich to extend two classes Bird and Animal. Observe …

Multi level Inheritance Java Read More »