What is a data class?
Utilisateur anonyme
A data class is especially designed for holding the data and it has some useful features like copy function, componentN function also it fills hashcode and toString methods for you, so you don't need to override them.