Which of the following represents a data class in Kotlin? - Study24x7
Social learning Network
5 followers study24x7 16 Oct 2024 11:17 AM study24x7 study24x7

Which of the following represents a data class in Kotlin?

A

class User(val name: String, val age: Int)

B

data class User(val name: String, val age: Int)

C

data class User(name: String, age: Int)

D

class User(name: String, age: Int)

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles