Data Class
Noun · Development
Definitions
A class designed primarily to hold data, with automatically generated methods like equality checks, hashing, and string representation. Python's @dataclass decorator and Kotlin's data class keyword both eliminate boilerplate for simple value objects.
In plain English: A shortcut for creating a class that mainly stores data, where the language automatically writes the boring repetitive code for you.