1
Wizards and warriors, part one
A common problem I see in object-oriented design is: A wizard is a kind of player. A warrior is a kind of player. A staff is a kind of weapon. A sword is a kind of weapon. A player has a weapon. Bu…
Eric Lippert's blog
Visit ericlippert.com → RSS feedOn Hacker News Sep 2014 – Nov 2022
Software Engineering 5Life, Learning & Writing 4Career & Management 2Science & Space 1Programming Languages 1Tech Industry & Business 1
A common problem I see in object-oriented design is: A wizard is a kind of player. A warrior is a kind of player. A staff is a kind of weapon. A sword is a kind of weapon. A player has a weapon. Bu…