What's the advantage of using case classes? : <p>Sometimes I see people using standalone case classes for general purposes, instead of pattern matching, for example,</p>

<pre><code>case class Employee(id: Int, name: String, age: Int, city: String)
</code></pre>

<p>What's the advantage using case classes like this over normal classes? </p>

<pre><code>class Employee(id: Int, name: String, age: Int, city: String)
</code></pre>
