Y

YouLibs

Remove Touch Overlay

Kotlin Tutorial - 29 - Data Class

Duration: 03:20Views: 689Likes: 8Date Created: Apr, 2019

Channel: PRABEESH R K

Category: Education

Tags: kotlin programmingdata classkotlin tutorial for beginnerskoltin data class examplkotlin language tutorialkotlinlanguagetutorialclass

Description: In this video we learn about how to use a data class in Kotlin Program. The class that used for the purpose of saving data is called data class. Data class cannot be open,abstract,inner or sealed class Primary constructor of the data class can have at-least one parameter Parameters of the primary constructor must be specified as either read only (val) or read-write (var) A data class can extend other classes or implement an interface. When you create a data class the compiler automatically generates copy(),equals(), hashcode(),toString() and componentN() functions for the parameters of the primary constructor. Because of presence of these functions, data classes helps us to avoid boilerplate codes. Like my Facebook page : facebook.com/codeglympse Subscribe My YouTube channel : youtube.com/ticoontechnologies

Swipe Gestures On Overlay