Kotlin Basic ✍️ Data Class In Kotlin In domain-driven design development simple class as bean or POJO or model class in Java. In the POJO class, we just create fields and setter/getter methods to set and retrieve data from is Object.