They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.
They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.
Object oriented programming was a mistake
it’s probably so much worse
What is refactoring?