3 ms·
> In the context of a game or simulation, such classes can absolutely do all these things Sure, but the point of TFA is that even then it still doesn't (necess
by fenomas 7y ago
> In the context of a game or simulation, such classes can absolutely do all these things
Sure, but the point of TFA is that even then it still doesn't (necessarily) make sense to give them an OO hierarchy similar to their real-world taxonomy.
It might make sense of course, but it might not - you can't tell without looking at the code. The point here is that duck/bird analogies imply that the real-world relationship between ducks and birds tells you something about whether your Duck class should inherit from a Bird class, when in fact it doesn't.