title: What is the difference between Scala's case class and class?
body: <p>I searched in Google to find the differences between a <code>case class</code> and a <code>class</code>. Everyone mentions that when you want to do pattern matching on the class, use case class. Otherwise use classes and also mentioning some extra perks like equals and hash code overriding. But are these the only reasons why one should use a case class instead of class? </p>
  
  <p>I guess there should be some very important reason for this feature in Scala. What is the explanation or is there a resource to learn more about the Scala case classes from?</p>