Oh, but you should not classify living beings according to their habitat and behaviour; classification based on the degree of the phylogenetical relationship is obviously superior and the only truly reasonble one.
So technically whales are fish, because all mammals are fish!
Now, there’s something wrong with saying “whales are phylogenetically just as closely related to bass, herring, and salmon as these three are related to each other.” What’s wrong with the statement is that it’s false. But saying “whales are a kind of fish” isn’t.
[0] https://slatestarcodex.com/2014/11/21/the-categories-were-ma...