C++ Homework (Creating a Class)

profileaalaz

 The goal of this homework is to create a unique class of a "magic item", which allows the user of the "magic item" to do something and then, perhaps, win something. Your "magic item" can (and should) have different behaviors than the "magic items" created by your fellow students. For example, a "magic item" may ask a riddle and, if answered correctly, awards a potOfGold. In addition to answering a riddle, other example behaviors are solving a math problem, answering a trivia question, playing a slot machine, etc.


Functional Requirements:

1)You must declare your class in its own header file and then define your class in a corresponding source file.


2)Your "magic item" class should have at least two data members and, in addition to constructors and getter/setter functions, at least four other member functions. One of these other functions must be an introduction() function that tells the user how to use the "magic item" to win a prize.


3)Both files associated with your "magic item" class must include your name.



    • 6 years ago
    • 15
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      AnswerDocument.docx

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      MagicItem.zip
    • attachment
      1587378572835_image.png
    • attachment
      1587378562100_image.png
    • attachment
      image.png