Kotlin Data Class Tutorial with Example

preview_player
Показать описание
Welcome to another video that is Kotlin Data Class Tutorial. Data class in Kotlin is another cool feature that replaces all the boilerplate that comes with Java Pojo class.

Now creating a class, that just stores data is very easy and handy with Kotlin Data Class. In this Kotlin Data Class Tutorial we will learn what is a data class, how to use it and why it is better than java pojo classes.

0:00 Introduction
0:32 Java POJO Class
1:50 Creating Kotlin Data Class
3:40 Creating Data Class Instance
5:00 Kotlin Data Class Body
6:40 componentN Function
7:50 Destructuring Declaration

If you are having difficulties navigating from one lesson to another, then click on this link and it will open the complete playlist of this Kotlin Object Oriented Programming. In this playlist all lessons are already arranged in chronological order.

All the codes about this Kotlin Android Tutorial for Beginners are organized sequentially in this repository

And if you need more support, then you can join the Simplified Coding’s Quora Space to post your questions.

If you want to get in touch with me; you can find my contact details here:

Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.

For more contents related to Software Development visit my website.

You can SUPPORT me if you want
👉 PayTM (India Only): +917549161079

You can also check some of my other courses from these links

❤️❤️ Thank You All for the Love and Support ❤️❤️

#KotlinOOP
#OOPsConcept
#LearnKotlin
Рекомендации по теме
Комментарии
Автор

Sir your Kotlin videos made my OOPs much stronger.. thank you sir..❤️

adityashidlyali
Автор

Excellent, I am using your videos to supplement my learning from a book

funnyvid
Автор

Nice tutorial I've really learned a lot much appreciated💪🏻😃

terencejumba
Автор

Maaan! I just saw the official Video from google “Data Classes - Kotlin Vocabulary “ and was good but I still did not fully get it. I instantly searched “Data Class” in your channel and your video helped me a lot! 💪🏻😃 Would be cool if you can create videos based on Android Dev Channel with the Simplified Coding touch!! Keep up the good work 🙏🏻❤️

radbaver
Автор

A fruit full thanks to you sir for this beautiful tutorial.
But I have a question.
Why kotlin compiler generates componentN methods instead of just using getters?
If you check out decompiled kotlin bytecode you'll notice that componentN methods and getters are exactly the same.

Please answer.
It's my humble request to you sir.

vikramsinghnegi
Автор

Sir please make a video on OOP. We want to clear the concepts.

syedhassan
Автор

How to add vfx effects to our apps like making vedios or photoeditings

luckysoftwaresolutions
Автор

Sir could you make a vedios about android development from scratch

luckysoftwaresolutions
Автор

The component part is not very clear, why you comment the all the print(person.componentX), and what are those useful I didn't get it?

AlaaAlbrg
Автор

Sir please rest api with pagination ka ek tutorial bna dijiye.

GD-ixgd
join shbcf.ru