iut-cse/OOKata

Toy maker

sadatbs opened this issue · 0 comments

Overview

As i was going to watch TV, i saw that my cousin brother is already watching cartoon on TV and very much excited . So I decided to make him even happier by making 3 types of toys like 3 characters from the cartoon for him-

  1. Thar: swings with hammer 🔨 .

  2. Dogverine: Slashes with knives 🔪 .

  3. White shadow: Fires with gun 🔫 .

The purpose of each toy is to entertain my cousin by making sounds according to their weapons. Now that you know the details of my plan, Help me make the toys for him 😄 .

Example

Thar: "Bump".
Dogverine: "Slash".
White Shadow:"Pew pew".

Assumptions

  • The characters in the cartoon are humans so each of the toys has same properties like- limbs,body,etc. But each of them has different weapon and action.

Task

  • Implement code so that the toys can entertain my cousin.

Reminders

  • React to the problem if you find it interesting and helpful. This will help others to easily identify good problems to solve.
  • Feel free to comment about the problem. Is the description unclear? Do you think it is too easy or too difficult than what is mentioned? Comment about it.
  • Discussion about the solution is OK. But do not paste a solution here. Give a link to the solution instead.
  • Do you have an interesting problem? Post it.