Creating data classes in kotlin?

Kotlin's data classes provide a concise way to create classes used mainly for storing data. These automatically provide basic methods like `equals`, `hashCode`, and `toString`:


  data class Person(val name: String, val age: Int)
  

Beginner's Guide to Kotlin