In Java, method overriding is a very powerful tool. So we're going to begin to master it immediately through practice. Suppose we have a whale, a descendant of cows. Don't ask us how it happened... let's just say it's a family matter. Override the whale getter so that it doesn't display a message about being a cow.
Whales, the descendants of cows
You must be signed in to leave a comment
This page doesn't have any comments yet