Programming
Adventure game

Question Description

Can you help me understand this Programming question?

-create a class called Item. This class should model a basic adventure game item. It should contain fields for only the most common attributes of items.  It should also provide a basic means for accessing these fields and storing values for them.  Additionally, you must provide a toString() method which returns a String representation of the item which looks similar to:

Item:
  shortName: sandwich
  type: consumable
  description: a peanut-butter and Jelly


-Create another class called ItemTestDriver in a new file.  This class should have a main method which creates two distinct Item objects and prints them out.  These Items can have any non-trivial (that is, not blank, or something similar) content of your choosing.


-Within the comment block at the top of each file, provide a brief justification of the design decisions you made for the class.

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

dagrawal (611)
Cornell University

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4