Nice explained but check function is bit confusing..Even confused you..😊 We can use it when we need to throw any exceptions right ? Suggestion to you just as a follower edit the video before you upload so that viewers get confidence when they see your video.. But at the end very well explained and learnt the basics of defining a class with properties of generic type..👍👍
Thank you so much Ankit, appreciate all the feedback. Yes will be trying to do better and edit the video to make it more clear. Bu thank you again for feedback
The check condition you explained is wrong , it was partially correct when it was type. Os ! = "Android", this condition stated false because type is Android but with an address so basically you were comparing reference type with a string " Android"(I.e generics. Android@3941a79c ! = "android")
Hi Tarun, in case of strings the same string is using the same address so even the == works in that.This is why it works with the isAndroidPhone() and it failed with IOS() . If we want to compare the references we can use ===. However I agree equals is a more cleaner way but it will return the same answer in case of strings
you deserve thousands of subscribers very high quality tutorials ma'am
Thank you so much
very nice and easy basic explaination
Thank you so much
Very Good explanation, Mam 🙏
Thank you so much
Nice explained but check function is bit confusing..Even confused you..😊 We can use it when we need to throw any exceptions right ?
Suggestion to you just as a follower edit the video before you upload so that viewers get confidence when they see your video..
But at the end very well explained and learnt the basics of defining a class with properties of generic type..👍👍
Thank you so much Ankit, appreciate all the feedback. Yes will be trying to do better and edit the video to make it more clear. Bu thank you again for feedback
Hello, do u hv more vids?
Sure. You can find my Kotlin basic series on my channel page. Will be releasing few more of those in coming week
The check condition you explained is wrong , it was partially correct when it was type. Os ! = "Android", this condition stated false because type is Android but with an address so basically you were comparing reference type with a string " Android"(I.e generics. Android@3941a79c ! = "android")
Hi Tarun, in case of strings the same string is using the same address so even the == works in that.This is why it works with the isAndroidPhone() and it failed with IOS() . If we want to compare the references we can use ===.
However I agree equals is a more cleaner way but it will return the same answer in case of strings