When the user examines the item of this class, the user gets the item's description.
That description may be different depending on when the user gets it.
Examples:
Look at the book class. If the user types "vandalize book" the book's description changes.
A Clock would return the current time with its description.
A Magic 8-Ball could return random messages in its description.
Create some classes that extend the Item class.
When the user examines the item of this class, the user gets the item's description.
That description may be different depending on when the user gets it.
Examples: Look at the book class. If the user types "vandalize book" the book's description changes. A Clock would return the current time with its description. A Magic 8-Ball could return random messages in its description.