Tag: data class

#7 Definitions and Wrappers in Kotlin

Data Structures (Collections)

Data Classes in Kotlin | Kotlin Tutorial 2019

Data classes in Kotlin allow us to easily create a class which only holds data. Through using the data keyword we are able to easily generate a lot of boilerplate code and speed up our general development process. As always though, if you have any questions about what was covered in this video please leave […]

Kotlin Tutorial – 33 – Access Properties of Data classes using component functions.

In this video we learn about what is the use of component N() functions in data class. We can access individual properties of the data classes using the component functions like component 1, component 2 etc. If there is n properties are available for a data class objects, then there are n component functions are […]

Kotlin Tutorial – 32 – Data Class equals() function

In this video we learn about what is the use of equals function associated with a data class. The equal function in data class help us to compare two objects. The equal function in data class compare two objects by using the object property values not by using the hash-code. Like my Facebook page : […]

Kotlin Tutorial – 30 – Data Class copy() function

This video demonstrate what is the use of copy() function available with the Kotlin data class. For a Data class we can change the values of properties of an object by using the copy function. You can make copy of an object with some properties value change. Like my Facebook page : Subscribe My YouTube […]