Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A class to handle all items / objects/ or things
- */
- public class Item {
- private String name;
- private String desc;
- /**
- * Item constructor
- *
- * @param name: The String name of this Item
- * @param desc: The String description of this Item
- */
- public Item(String name, String desc) {
- this.name = name;
- this.desc = desc;
- }
- /**
- * @return: Returns the name of this Item
- */
- @Override
- public String toString() {
- return this.name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement