Why does the eat() method in the Hamster class not override the method in the Rodent class?

Hamster doesn't extend RodentThe method in Hamster has a different method body

It's because Hamster doesn't extend Rodent. We need an inheritance relationship to be able to override.