Java Exercise 15 / 15

Inheritance

Medium 22 points

Create an Animal class and a Dog class that inherits from Animal.

Java inheritance allows a class to inherit properties and methods from another. extends creates inheritance.

Well done! 🎉
Your answer is correct! You earned 22 points.
Your code Java
Result