For the first time, I really understand generics. Thanks a lot
@vengateshm21223 жыл бұрын
Add a video on covariance, contrravariance, invariant.
@DSW2022 Жыл бұрын
You are a brilliant teacher Bilal. Thanks to you now I understand generics.
@kevgits2 жыл бұрын
I couldn't understand this concept even after going through the docs. Thank you for this simplified version.
@milon273 жыл бұрын
When to use & when only
@SimplifiedCoding3 жыл бұрын
In very simple words When you make your T out you can only define it as return type in function if you try to write it as a parameter you will get error.
@SimplifiedCoding3 жыл бұрын
For more details you can search Covariance, Invariance and Contravariance
@milon273 жыл бұрын
@@SimplifiedCoding thanks
@decloudius2 жыл бұрын
I don't know how to tell you my gratitude but, I love you sir, thank you
@GriNAME3 жыл бұрын
Thank you so much! Your vidios are so useful for me (and for other I guess). You made my coding live more better, I mean it! With love from Russian 💪👍
@nishu333893 жыл бұрын
Thanks Belal for the kotlin tutorial series 😃🙏
@janadonis52112 жыл бұрын
What a great teacher! keep up the good work, thanks a lot man!
@gilong13112 жыл бұрын
Great video, do you have a video on usage of covariance and contravariance?
@positive_vibes_alone2 жыл бұрын
How can we achieve the same using pojo class as T ?
@Sumitmaurya0703 жыл бұрын
very good feature of kotlin. Thanks for the info,
@vengateshm21223 жыл бұрын
Can we use Any instead T ? Because Any is the class which is extended by all classes in default?
@SimplifiedCoding3 жыл бұрын
When you write T or any character; it basically means any. Here you cannot define the actual type not even any. Any is there by default. It means T : Any that is you can define any type that inherits Any and Any is the super type of all classes. You can also restrict by defining a specific parent for example T : View It means here for T we can define any type that is a View. So you cannot write the class name here. But you can define a super type if required.
@vengateshm21223 жыл бұрын
@@SimplifiedCoding Thank you Belal
@jkeriatamboli21013 жыл бұрын
As in java for we compair int value using == like 1==1 but for string we compair using equals() like str1.equals(str2) so in kotlin for string == work
@nocompromise82643 жыл бұрын
How to upload .db file (Of SQLite Database) to user's Google Drive?, in Kotlin?
@kpranjith2 жыл бұрын
wow great explanation with example!!! 😍
@mdjahidulislam92053 жыл бұрын
Covariance and Contravariance what about this?
@MisterWealth3 жыл бұрын
Are generics for beginners intermediate or pros? Because this seems like a difficult concept to grasp for me :(
@kristianabrahamsen70192 жыл бұрын
good explanations!
@techmarinar3 жыл бұрын
Thanx man this was very helpful 😊
@IUfidi3 жыл бұрын
I like ur style!
@spy97892 жыл бұрын
Thank you master
@shreyashchoudhary74133 жыл бұрын
Loved it!
@امیرحسینكامرانپور2 жыл бұрын
good examples
@johndominicjasmin3 жыл бұрын
Thank you
@ampo20043 жыл бұрын
360p ? : ( too blurry
@SimplifiedCoding3 жыл бұрын
KZbin is processing the HD version, wait for a while, it will become Full HD.