title: How would I store different types of an object?
body: <p>I am creating a card game in Java. Each card object can have a different suit out of a selection of four and <strong>each suit alters the way the card object functions with other objects in the game</strong>. Otherwise, the cards behave the same way. I can assign each card object a suit by using a Boolean variable for each suit, <strong>but doing that feels like a messy solution where things might go wrong.</strong></p>
  
  <p><strong>Would using an Enum be a better solution?</strong></p>