Task 2 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

7.2 Overriding — override describe in Cat

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Write Cat extends Animal that overrides describe() so it returns the name followed by " is a cat" instead of the inherited text.

Mark it with @Override. The program prints Whiskers is a cat.

Your solution