The classes which are used to hold the data or content are known as data classes. Earlier these data classes were only used to build the codes in Java but following the explicit implementation of its higher and greater set of properties, it is significant in kotlin as well. Along with this language, functions like tostring, equals are also combined with it. Kotlin offers a variety of these functions by implementing them along with the component functions.

BY Best Interview Question ON 07 Oct 2019