Domanda di colloquio di Trendyol

What is a data class?

Risposta di colloquio

Anonimo

29 set 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.