We read your photo as:

What is the primary purpose of a data class in Kotlin?

Computer Science

ScanSolve AI Answer

The primary purpose of a data class in Kotlin is to hold data. They are designed to simplify the creation of classes that are primarily used to store state, automatically generating common utility functions like equals(), hashCode(), toString(), and copy(). They are not intended for implementing complex business logic, UI tasks, or multithreading operations.

The correct option is:

  • To store data without additional functionality
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question