Do not miss our Interview Question video series 30 Important C# Interview Questions : kzbin.info/www/bejne/eHzcn3h4hdacf68 25 Important ASP.NET Interview Questions : kzbin.info/www/bejne/ponQfpejf7p2Zsk 25 Angular Interview Questions : kzbin.info/www/bejne/Y5vIoKx6f6mmia8 5 MSBI Interview Questions : kzbin.info/www/bejne/a3abYmiXjaaqj7M
@torykidd75702 жыл бұрын
Six years later, you're still helping newbie programmers. Thank you.
@so_called_kabir_singhАй бұрын
Bro here I'm 9 years later
@ankitmvp3 жыл бұрын
Shiv sir is the best mentor. He is the only one who can explain the complex concepts with ease, even to Microsoft devs. 😊
@Lisa-uq4ty6 жыл бұрын
You are the first person who explained this in a way I could understand. Thank you!
@BlueHat1 Жыл бұрын
Wow! That's honestly the perfect example, thank you so much!
@ivanubiamaia94757 жыл бұрын
Great tutorial. Now it is very clear the difference between ref and out for me. Thank you!
@alitalipakgun55355 жыл бұрын
Wow described perfectly i have no question in my mind about differences between normal, out and ref paramaters after watching the video. Thx pal !
@WickedFlamezZ3 жыл бұрын
Really great video, others are 16minutes long but this tells you everything you need to know in 6.
@kiPROBRos3 жыл бұрын
Ovo je najbolji tutorijal u vezi Ref parametra.
@sasirekha9523 Жыл бұрын
Sir no other articles explained in this correct and prompt way. either it is confusing or left unexplained. you are nailing to the point. hats off to you sir always.
@quaintnet1039 жыл бұрын
I like all your videos! very informative.....Pls correct the dialog "by default the variables are passed by REF....." to by default the variables are passed by Value..." at 00.51
@basilio1009 жыл бұрын
+Quaint Net I would say that PRIMITIVE types passed by value,....
@liubomirwm7 жыл бұрын
Actually all types are passed by value, the difference is that primitive types contain their value in the stack and their stack variable (containing the value) is passed. So called reference types have a stack variable which contains not the value directly but the address to the heap (where the actual data is contained). When you pass a so called reference you pass the reference address by value.
@trenocio85415 жыл бұрын
@Taiwo Seiler As far as I know, it doesn't make any difference to add ref to a non primitive type
@akshaytalekar28806 жыл бұрын
Ever Ever Simplest Explanation About REF OUT Keywords.
@DirePantsDim Жыл бұрын
Eight years later, and still the best explanation on this topic. You sir, are awesome.
@rjbb0377 Жыл бұрын
Thank you so much! I have had such a hard time trying to understand this, but after listening to you it is so much more clear.
@satish67764 жыл бұрын
thank you so much!!! I watch many video but not clear this concept. clearly explained and easy example
@LucasofAppalachia8 жыл бұрын
Thank you! Very clear explanation with good examples.
@nandorbacso46254 жыл бұрын
It was a really good and well understandable video! Thanks, man!
@jakebwhite92533 жыл бұрын
Thank you! This cleared up the difference. I don’t understand when would someone use “out” though, it seems dangerous!
@niluniverse7 жыл бұрын
Absolute Explanation ! Thank You Very Much Shiv !
@SumitGupta-wr3jf3 жыл бұрын
I think 10 time to watch more than 7-8 min videos but you explanation is so sorted even half and hour video i see cause i clears my doubt from top to bottom so i can remember easily....
@ronelperez25657 жыл бұрын
Thank you. Simply explained but very understandeable.
@d_cl Жыл бұрын
The clearest explication I found! Thanks!
@CarlosRamirez-jh8yw4 жыл бұрын
Best explanation yet! Thank you
@hagbard68806 жыл бұрын
This Video helped me a lot. Thank you.
@snowblind1123 жыл бұрын
Perfect explanation, I was totally lost before I found your video. Thank you!
@srinivasaraoyp36405 жыл бұрын
Very nicely explained Sir. I enjoyed your video...Thank you....
@RahulGupta-jk9lb3 жыл бұрын
I was confused for ref and out parameters. Now It is clear, thanks!
@vikramsharma42646 жыл бұрын
you are the best teacher !!
@suniljadhav5896 жыл бұрын
Nice explanation. Very easy to understand these type of concepts.
@tamaraimani5068 Жыл бұрын
I appreciate your way of presentation..
@glasgood99073 ай бұрын
Fantastic explanation, thank you so much 👍🏼
@leoc54734 жыл бұрын
Incredibly helpful, thank you so much!
@jayadulshuvo58574 жыл бұрын
That was the easiest explanation of the topic. Thank you.
@MarcV_IndieGameDev5 жыл бұрын
Thank you for the video, helped me out.. or should should I say, helped me ref'd
@Prishadubey883 жыл бұрын
I'm really so impressed with the explanation. I have observed the pop up at 0.55 minutes time which puts the wrong statement for default . Could you please correct the same. Rest.... I'm a big fan of your every video. Happy Learning Sir.
@nishanthgmk34873 жыл бұрын
The best explanation ever seen, no more doubts
@sery1525 жыл бұрын
a VERY GOOD EXPLANATION!
@gnitin03842 жыл бұрын
Thank You!! It cleared my long standing doubt
@alex_fromrsa4815 Жыл бұрын
This just simplified the most confusing part of methods for me in 6 minutes. Thanks
@tauseefakram902 жыл бұрын
Very clear explanation with basic example. Thanks !! :)
@mylapalliravi99203 жыл бұрын
i liked the way of explanation ...easy thank you boss
@dalamattho23075 жыл бұрын
Your video is helping me to give a strong interview thx
@yashgupta83366 ай бұрын
Brilliant explanantion, Thank you!!!
@alreadytakenindeed3 жыл бұрын
Great description, super simple and easy to understand example, thank you!
@kskchaitanya6 жыл бұрын
Hi, can you explain more on this topic... How exactly CLR handles this passing using REF and OUT keywords... Please have a look at the example below: private static string ModifyString(string originalInt) { originalInt = string.Empty; return originalInt; } private static string ModifyString(ref string originalInt) { originalInt = string.Empty; return originalInt; } Both these cases are PassByRef because string is reference type... but using the ref keyword, the changes propagate to the caller. My question is, how is the CalledMethod modifying the pointer information of the CallerMethod - (when the value in the CALLEDMETHOD changes, String creates a new memory location for the new value and assigns the new value location to the CALLEDMETHOD and the CALLERMETHOD at the same time).
@mohammedzaid38292 жыл бұрын
sir very good explanation,, you have covered the concept within very short time..!!
@theuntormented6560 Жыл бұрын
I am very particular about the videos that I click the damned like button Trust me guys this is one of those ❤❤
@PiddBoo5 жыл бұрын
This was really helpful. I appreciate your help.
@geetasharma4632 жыл бұрын
superb explanation thanks now iam confident
@RayanMADAO2 жыл бұрын
I didn't even know about the step by step bugger (f11) before this video, that's a really cool and helpful feature
@ashishaswal73964 жыл бұрын
thank you for this video.. on the net there were all bullshit differences.. now is the main practical difference that made sense why we use them.. keep making these types of videos
@alexmurghulia64844 жыл бұрын
thank you for the explanation, it helped a lot, subscribed.
@NoName-13374 жыл бұрын
Well explained, thank you.
@aungpaingphyo2182 жыл бұрын
thanks alot!I was having trouble differentiating those two
@santhoshkumarkumaresan52015 жыл бұрын
Nice, to add more, the variables should be created before passing to the method for ref and , for out, we can create and pass in method call.
@NEETHUMOHAN385 жыл бұрын
Helped a lot.. Thanks a lot
@artwolfgirl2 жыл бұрын
Thank you for the clear video!
@मयंककेला4 жыл бұрын
thank you very much but better in (Hindi, Sanskrit ) AnyWay Nice Vdo in Detail Proper Explanation
@mdalaminmahamud37758 жыл бұрын
thanks :D you really saved a lot of time us.
@preeti18203 жыл бұрын
Thank you Sir! This video helped to clear my doubt.
@AlbrechtJ3 жыл бұрын
Thanks for a clear explanation.
@manpreet4all5 жыл бұрын
Sir I think callee doesn't returns any thing... actually the changes are happening in a common address space in case of ref and out so values are refelecting... And in case of out it overwritting with 0 in callee so again common address space is overwritten.... Can you correct me plz where i am wrong.
@owenlie6 жыл бұрын
Best explanation
@ap7772009 жыл бұрын
Thanks this was very informative!
@dapare006 жыл бұрын
Great explanation, thanks!
@hajirrasouli14583 жыл бұрын
Thank you. Your video helped me a lot!
@Dismanameboi3 ай бұрын
Amazing explanation once again
@kalinduabeysinghe8917 Жыл бұрын
Beautiful explanation!!!
@pranavb97682 жыл бұрын
Great explaination sir!
@jorgecardona3432 Жыл бұрын
Really well explained, thank you!
@BattleandBeyond10 ай бұрын
Awesome explanation.
@tko1176 Жыл бұрын
Thank you very much. I have a question when is it useful to use the out key world. usually when I call a function it is to do something with the parameters, why would I want the parameters to be generated by the function?
@mehmetalper61563 жыл бұрын
Very good explanation thanks
@mimo84396 жыл бұрын
Thanks u made it clear...
@reyou78 жыл бұрын
Very well explained!
@Monirmahir7 жыл бұрын
This is worth watching
@dusan78733 жыл бұрын
Well explained and simple. Thanks.
@alexseresalex18433 жыл бұрын
Your are bloody amazing SHESHARPP!!!! thanks for the content
@rohansolse676 жыл бұрын
awesome way to explain concept dude
@dillikumarreddy15795 жыл бұрын
Pretty helpful. Thank you.
@desaimihir838 жыл бұрын
Well explained, in other words, simplified explanation.
@rambabumoorthy58085 жыл бұрын
easy to understand thank you
@DarthJeremy364 Жыл бұрын
this is sooo clear thank you!
@imhappynow84715 жыл бұрын
Thank you for nice example
@venkatraman47623 жыл бұрын
Great Explanation.
@tvsnmurthy23706 жыл бұрын
Hey I want to know In which scenario both are using?
@chezchezchezchez2 жыл бұрын
LOL weird no one is talking about THAT!!!!!!!!!!!!!
@felixf43788 жыл бұрын
Great explanation dude.
@AbdullahKhan-hz7yr8 жыл бұрын
I think you should have mentioned that this default behavior is regarding value types. I know its obvious but I'm sure someone, somewhere out there will assume that reference types will be passed by value!!
@stannisbarracuda56936 жыл бұрын
thank you so much what i couldnt understand in a session in class i understood in a 6 min video
@yaminiashok79627 жыл бұрын
you are saying when we use out keyword it will not carry data from caller to the callee but instead of insidevar=insidevar+10 just keep insidevar=10 and debug u can observe that value of insidevar=20 in the method somefunction I think you are wrong sorry if i am wrong please verify and confirm us
@nishant07kumar7 жыл бұрын
I also believe that in the case of out value will from the main method will be passed to the somefuncton but that value will not be any use as ultimately inside somefunction variable will be initialized and old value will be discarded and new value will be assigned.
@ourtube94055 жыл бұрын
So what is the exact use of out here?
@manpreet4all5 жыл бұрын
If the person is wrong, they dont have time to reply...
@avinashraj255 жыл бұрын
Out is used when we need more Return from a function. Function can return Only one value so we have Out keyword. Yes it is of Ref type but we assign the values inside function to this parameter and use it outside of Function.
@jasper50165 жыл бұрын
This is exactly what I thought. out is not actually passing value. Its returning value.
@MyVideoFinder9 жыл бұрын
Very nice informative.. I will be very helpful if you able to give links of your domain for the same question in KZbin description.
@dnfvideo9 жыл бұрын
+Abdul Qayyum For more info and materials visit www.questpond.com
@MyVideoFinder9 жыл бұрын
ok thanks..
@adammeniata19554 жыл бұрын
that was a nice video, thanks!
@TheSphynxoid6 жыл бұрын
So they are lke static which allows you to pass even fonctions
@giga_charge2 жыл бұрын
Very helpful! Thanks!
@Saandy_8 жыл бұрын
Definitely cleared up some confusion. thanks!
@maneshwam Жыл бұрын
"0:51 By default variables are passed BY VALUE to methods and functions"
@jasper50165 жыл бұрын
Great video. Thanks. Explanation for out does not make sense. I think out is for returning the value.
@EduTainer5 жыл бұрын
What Compiler are you using?
@stewiegriffin65032 жыл бұрын
I understand it. Thanky you. But what would be the idea behind introducing OUT function ? I guess they needed to make some pattern easier. But I don't see any practicaly use of OUT.
@chezchezchezchez2 жыл бұрын
Saving CPU cycles and memory and time. No need to pass the data in? Use OUT!