Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@govindmusic_12 жыл бұрын
after searching and watching more than .10 videos .. Trust me This is the best video i found who made me understood what is downcasting and upcasting as well as use of instanceOf.. Very nice bro .. Thank you sooo much
@kapilsharma6046 Жыл бұрын
this is the best simplest upcasting and downcasting explanation in detail, thanx bro
@kiranmaiganapuram90793 жыл бұрын
well explained brother. after wasting 3 days searching for casting videos. this is really helpful. finally i undestood the topic. thankyou :)
@abbyboing4 жыл бұрын
Thanks a lot for explaining this dude. I've been super confused on this topic for a long time.
@SimpleSnippets4 жыл бұрын
Glad to help!✌
@pulkitsharma57924 жыл бұрын
Thanks alot brother after watching many videos still have doubts which are clear now
@SimpleSnippets4 жыл бұрын
Glad to hear that
@zaur8843 жыл бұрын
Thanks for your good explanation. Perfect 👍.
@angulardesign74125 жыл бұрын
Hatts off to u . U cleared my doubt thank u
@SimpleSnippets5 жыл бұрын
Most welcome bro 😁 I'm glad that this video helped you. Please do share it with your friends ✌️
@piyushbarhate14817 ай бұрын
Thanks bro for great explanation...
@rupeshkumarpadhi90603 жыл бұрын
Thank you so much...now my doubt is cleared
@anithakota25404 жыл бұрын
It's very clear explanation. Thank you so much....
@SimpleSnippets4 жыл бұрын
Thanks buddy! Please share the videos with your friends if you want to genuinely support me & our channel!✌😇
@rohitghadge91734 жыл бұрын
very nice explanations thanks alot
@SimpleSnippets4 жыл бұрын
Thanks Rohit! please do share the video and our channel with your friends too. Thats the biggest help and support 😇
@ksdnsdkumar13752 жыл бұрын
What's the difference between downcasting and directly creating child object in java?
@universalgamers25242 жыл бұрын
very nice website. fully user friendly love it..!
@Unkn0wn_Legend0003 жыл бұрын
great video... although I had to watch it twice bcz your last examples, whether where we can use up & down casting made my concepts clear .... so I hade to give it another look to get it on board.....
@SimpleSnippets3 жыл бұрын
Glad it was helpful! Thank you so much buddy. It would mean a lot if you could please share our channel and videos with your friends too ✌
@swathinarayanamoorthy5199 Жыл бұрын
tq so much sir i uderstood very well
@nachiketjoshi38784 жыл бұрын
Best explanation of type casting thank u
@SimpleSnippets4 жыл бұрын
Thank you so much Nachiket bro 🤟😊 please do Subscribe & share our channel with your friends to. That's the biggest help and support from you 🙏
@AntonyDavid373 жыл бұрын
Thank you! Good Explanation. One Doubt... Instead of doing Downcasting, Why can't we go like Child c = new Child(); ???
@IluSsIoNnN2 жыл бұрын
Because you would creat another object and maybe you don't want that.
@salqarni66823 жыл бұрын
thank you so muchh it was very clear and finallyy i understand it!!
@SimpleSnippets3 жыл бұрын
Glad it helped! Please do share the videos and channel with your friends too. Thats the biggest help and support you can give!
@amithghosh33324 жыл бұрын
you are the best.... after this, i got a lot of clarity. thanks
@SimpleSnippets4 жыл бұрын
Glad to hear that! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@programmingforfun41583 жыл бұрын
The best guy in java. I can surely say.
@SimpleSnippets3 жыл бұрын
🙌❤️🙌
@sanketpatil32432 жыл бұрын
But if I create a object of child class with reference of child class so why need to do down casting? i can access the overridden method & unique method of child by using that object
@KG-vo6rg4 жыл бұрын
one of the best explanations seen for such concepts.. Nice one.
@SimpleSnippets4 жыл бұрын
I am glad you liked this tutorial buddy, please do share the video with your friends too ✌
@tanunjoyroy7994 жыл бұрын
hey I have a question regarding your real-time example of upcasting you mentioned "Upcasting is used when we want to refer multiple child classes by a single parent object N we want to call their respective overridden methods at a particular time when necessary" Could you please elaborate specifically on what did you mean by referencing them at a particular time when necessary? let's say we have 2 child classes child() & child1() N we create Parent p1=new child(); so my question is do we need to create another Parent class object ref Parent p2=new child1(); for child1()? If that's the case then let's say we have 20 child methods for each of them we need to create p3....p20 then where is the benefit here of using upcasting? I just want to know from the perspective of benefits of using upcasting when we have multiple child classes I hope I am clear :) waiting for your response
@safronee4 жыл бұрын
Benefit is in the case of security like we dont want to let the user use unique methods only want him or her to use overriden method only but at the same time we want to allow him to use unique to like we might ask him a security code from him and then let him use the unique methods also so these are used in the case of security purposes...
@RahulTetwar2 жыл бұрын
dude you explain better than my teacher
@SimpleSnippets2 жыл бұрын
Thank you Rahul 🤟😊
@aidasiempre3 жыл бұрын
nice video! thanks!
@nethmiwijebandara33154 жыл бұрын
Well explained. Thank you!
@SimpleSnippets4 жыл бұрын
Glad it was helpful! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@shashankshetty58794 жыл бұрын
But what's the use of down casting u created an object of a bmchild class and refereed it to parent class and u are accessing a method of that child class so even if u don't reffer or downcast I will be able to access the methid(unique method in this exmple)👀👀
@shubhankardamodare47454 жыл бұрын
Your website is awesome!
@SimpleSnippets4 жыл бұрын
Glad you think so! ✌
@NavJaswal5 жыл бұрын
Very well explained. Thank you.
@SimpleSnippets5 жыл бұрын
Thank you buddy 😇 please do share the video with your friends too ✌️
@ashoksamal80794 жыл бұрын
Thanks Brother, It helped.
@SimpleSnippets4 жыл бұрын
Glad it helped. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@mrudulaahire13603 жыл бұрын
Why Child c = new parent() gives an error, why is it not allowed?
@josephmartinez4703 жыл бұрын
Because child class extends from the parent class
@pup_lover3 жыл бұрын
Well explained 👍
@SimpleSnippets3 жыл бұрын
Glad you liked it
@rahatulashekinashik4 жыл бұрын
That was great! Thanks
@SimpleSnippets4 жыл бұрын
You're welcome! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@indurathour33013 жыл бұрын
Great👍
@weaammohamed36014 жыл бұрын
great
@touseefcheema25575 жыл бұрын
Thank you
@SimpleSnippets5 жыл бұрын
Most welcome buddy. Please do share :-)
@shivpatel82884 жыл бұрын
Amazing Video Bro!
@SimpleSnippets4 жыл бұрын
Thanks 🔥 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@rahularora29363 жыл бұрын
good vid
@Prathik70005 жыл бұрын
One doubt, Y create object of parent to call method of child?
@tusharikas54475 жыл бұрын
that is method overriding concept . Just go through the link -> kzbin.info/www/bejne/lWOZqYqiqtmcna8
@biswajitsahoo14564 жыл бұрын
@@tusharikas5447 bro we can also call the overiden method of child class by using child class object also but why we use parent class obj as upcasting to call child class method????....🤔
@aravindalluri17385 жыл бұрын
is it the parent object or parent reference?.
@Dem1692 жыл бұрын
Parent p= new child() Here p is object of child But he said p is parent object ,🤔
@virendrachavan92015 жыл бұрын
Good
@ChessNetwork165 жыл бұрын
give your site's link here.
@SimpleSnippets5 жыл бұрын
www.simplesnippets.tech
@shahdabtemori59305 жыл бұрын
before watching this i hv watched hundreds of videos .. when ever m stuck with some thing i dont get it easyly.... programing sometimes screw my f****ng head...
@SimpleSnippets5 жыл бұрын
Hehehe I can feel you buddy. Same happens to be quite often. Good to hear that you didnt give up even after watching so many videos 😇 Also I new video is coming up tomorrow on how to improve your programming skills so stay tuned for that ✌