well this turned out easier to understand than i thought, i've suffered for 2 months trying to figure these concepts and you simplified it all in less than 10 minutes :) thanks from venezuela
All reference types are stores in the heap. So, when method "Method" is called, 'x' will be send to method by the pointer, which address points to the heap where string is really exist. We are not sending the whole String to the method. We just sending a pointer(address points to the object stored in heap) into the method as parameter. But, in case void Method(int x) -> here we sending to method variable x(a real variable X, copy of X).
well this turned out easier to understand than i thought, i've suffered for 2 months trying to figure these concepts and you simplified it all in less than 10 minutes :)
thanks from venezuela
Senor Rohit i want to congratulate you because of the clarity of the video, great job and thank you
This video is very usefull for me thanks for your clear explanation
Very Informative Video, great work done
Osmly Explained
Thanks you very informative and well explained
Thanks for this clear explanation
Very good explanation.
Very useful video thank you sir❤❤
well explained
Thank you you clarify very nicely
very good video brother
in the function call, what if the void Method(string x), is the x will be stored on a heap? since the string is a reference type
All reference types are stores in the heap.
So, when method "Method" is called, 'x' will be send to method by the pointer, which address points to the heap where string is really exist.
We are not sending the whole String to the method. We just sending a pointer(address points to the object stored in heap) into the method as parameter.
But, in case void Method(int x) -> here we sending to method variable x(a real variable X, copy of X).
You're the nate gentile of india
I just got this question in my interview
Thank you sir
pictorial rep 👌👌👌
why you yelling