Question: Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying


Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying item that has a name and a weight. We will extend it with food, weapon, and armor classes. We will also need a rudimentary character to test the item classes with. Last week you produced a UML diagram for an RPG inventory. This week you will implement the classes in your diagram. Test Make a main class to instantiate some characters and items. Then thoroughly test your classes. Use print statements where needed to make it clear what is happening when you run your program. Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying item that has a name and a weight. We will extend it with food, weapon, and armor classes. We will also need a rudimentary character to test the item classes with. Last week you produced a UML diagram for an RPG inventory. This week you will implement the classes in your diagram. Test Make a main class to instantiate some characters and items. Then thoroughly test your classes. Use print statements where needed to make it clear what is happening when you run your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
