Question d’entretien chez Trendyol

What is a data class?

Réponse à la question d'entretien

Utilisateur anonyme

29 sept. 2025

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.