The following code:
class Cat extends Animal {
Cat() {
super() {
}
void bark() {
println("MEOW");
}
}
should be:
class Cat extends Animal {
Cat() {
super() {
}
void meow() {
println("MEOW");
}
}
and the code comment should read:
Since meow() is not part of the parent class, we have to define it in the child class.








