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.1 Inheritance — write the Cat subclass

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

Write the class Cat so that it extends Animal. Give it a constructor that passes the name up to the superclass with super(name), and a method meow() returning the name followed by " says Meow".

Notice describe() is inherited — you do not rewrite it. The program prints both lines.

Your solution