Pregunta de entrevista de Trendyol

What is a data class?

Respuesta de la entrevista

Anónimo

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.