title: game character class design, inheritance or composition?
body: <p>I am trying to create the character class for a game.</p>
  
  <p>About the character class:
  -It has different characters, for example warrior, shooter, king.
  -Each has different properties for example attack, defense.</p>
  
  <p>My question here is should I use Inheritance or composition?
  I have a Character Class, then should I create warrior class and extends character class or should I just put an identifier like String ID ="Warrior" in the Character class?</p>