Kotlin Sealed Class (With Demo Source code)
Вставка
- Опубліковано 25 лип 2024
- Access 7000+ courses for 60 days FREE: pluralsight.pxf.io/c/1291657/...
In this tutorial, learn about sealed class using 'sealed' keyword in one video:
- How sealed class is different from enum class?
- When and why should you use a sealed class?
- Various properties of the sealed class.
Learn about enum class: • Kotlin Enum class (wit...
Source code: bit.ly/2QtcUWR
Timestamps:
00:00 Introduction
00:26 Enum class vs. Sealed class
02:00 Sealed class
09:04 Summary
10:49 Thank You!
.
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: bit.ly/patreon-donate
- Paypal/Payoneer: sriyank123@gmail.com
- UPI (only for India): smartherd@okaxis
:: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
- Access my premium courses: bit.ly/sriyank-courses
Free Programming courses:
- Ruby Programming: bit.ly/smyt-r
- Dart Programming: bit.ly/smyt-d
- Kotlin Programming: bit.ly/smyt-k
- Java Programming: bit.ly/smyt-j
- Kotlin Coroutines: bit.ly/smyt-coru
Free Flutter course:
- Flutter App Development: bit.ly/2Rg7EFR
Free Android courses:
- Android using Kotlin: bit.ly/smyt-ka
- Android using Java: bit.ly/smyt-ja
- Android Material Design: bit.ly/2SMJqU6
- Android Jetpack Architecture: bit.ly/yt-j
- Android Multiple Screen Support: bit.ly/smyt-mss
- Android Retrofit: bit.ly/2Ee6GHn
More free programming courses:
- bit.ly/smy-list
Check out my website:
- bit.ly/smartherd
Let's get in touch! [Sriyank Siddhartha]
LinkedIn: bit.ly/sriyank-linkedin
Facebook: bit.ly/smartherd-facebook
Instagram: bit.ly/sriyank-instagram
Twitter: bit.ly/sriyank-twitter
Github: bit.ly/smartherd-github
--- Thank you for your love and support ---
Comment to support this video.
Thanks folks!
That's amazing explanation. Thank you so much. Just 10 minutes and things becoming much clearer. Thank you.
The way you explain is unique, I got clear the concept just like magic. Thanks
It would be great if you create a video for patterns in Android MVVM, MVC, etc.
this really helped my kotlin journey
That was really superb video, easy to understand, Thank you
Thank you for clear information on sealed class
Thank you very much for the video, buddy. I"ve just subscribed to your channel.
Great explanation!
You forgot to mention that starting from Kotlin version 1.5 we can define subclasses of sealed class in other files as well if we want to. There is no any restriction to do that!
Hey man, It works great and without any problems.
amazing explanation. Thank you so much
Superb explanation. Thanks
Great tutorial (y) easy to learn
Appreciate ur work brother. Kinda usefull for me.
thank you
Great video. Thanks
Amazing video
If possible kindly create a pure kotlin project which has all the features you have been telling.
So that will be a single place to cover all kotlin language features.
Make sense. Noted
Awesome sir ji. the way you explain it's very understandable sir. I learn many new things from you sir ji. Keep going.
Great video
Just one word for explanation "CLASS"
Can you make a lecture on Generics in Kotlin? I'm having hard time learning it (most of them are from java to kotlin). I find your teaching method very effective. It'll be nice if you can help out.
Really super
Awesome
good job
nice video but would like to add one correction , sealed class constructor is protected by default .
Hey if u can add summary and caveats which you show at the end of the video in the code as comment. It will act like a complete notes and will be a go to place for many people..
Hope u consider this.
thanks
I somehow in a way understand all of your tutorials
would you please make a video, how to read Android documentation, how gradle is working in android, core things of android,
i can build android app, but still having issue reading Android doc . please
Sir please make a video on alarm manger time should be set in code manually
...please sir..!!!
Big thumb up!
Why not use abstract class rather than sealed class
Because classes only can be inherited from sealed class in same file or there are more advantages?
Compile time error if we miss any class that extended sealed class in the when condition. Mainly used to manage state .
👍
Why we can't use is keyword for singleton object??
That's already a singleton. And using 'is' makes that redundant
Do you have any apps in Google Play store?
No
I still don't get why private keyword is not enough? I still confused
Thoda bahut samja
thank you
Awesome
Amazing