Data classes - Kotlin Vocabulary

preview_player
Показать описание
In this episode of Kotlin Vocabulary, Florina will discuss advantages of data classes, the restrictions, and we’ll take a look under the hood at how they’re implemented.

#Kotlin #KotlinVocabulary #AndroidDevelopers
Рекомендации по теме
Комментарии
Автор

The data class sounds so good to be used for creating of models, but without the inheritance its use is so limited...

atanasdoychinov
Автор

Are data classes isomorphic to structs in Swift? @2:21 The jump from pointing out that varargs aren't supported in a data class to the quote from Andrey Breslav was a bit of a leap. Isn't it enough to say varargs are arrays which live in the heap? @4:47 What are synthetic methods? It sounds like copy and copy$default both share the same semantics.

sayitsjose
Автор

Hi, The videos is really good for good understanding for the data classes, but Would like to know, if we need to use the same class in the sqlite using kotlin, how to insert the data into the respective variables, as of when all the data items were kept val the sqlite was showing error and was suggesting convert the data item into the var and then was able to add all the data into the variables, therefore it was easy to show in the recyclerview using kotlin for the android application. In that case advice please, Thanks

siddharthchughs
Автор

You haven't really gotten into its restriction that much, or even like real life scenario of where they fit the best, instead of of regular classes.
Great anatomical explanation still!

kqvanity
Автор

So great video, but I am wondering what's the benefits of making data class final?

GemiDroid
Автор

Is destructuring allowed only for data classes ?

pradeepkumarreddykondreddy
Автор

Whenever i remember the way data classes made me write less code when creating recyclerviews compared to java.. i sigh in relief

samuelrake
Автор

windows Ctrl +Shift+A show Kotlin Bytecode action. 02:54

MaisUmSomente
Автор

do u mean we cannot have a parent child relationship for a data class?

RahulPahuja
Автор

The weirdest syntax in all of Programming languages

AmitJayant
Автор

I am still not exactly sure why Data Classes can't inherit from another Data class. ;/

febaisi
Автор

I wonder what breed of doggo Florina has... 🤔

gabormiklay
Автор

Why make data class if we can make class with data attributes

rayanfernandes