Loading

Quipoin Menu

Learn • Practice • Grow

java / Java - Types of Inheritance
exercise
1/4
Exercise 1Java
Q. Create a class Animal with a method eat(), and a class Dog that inherits from Animal and has its own method bark(). Create a Dog object and call both methods.