what is the difference between passing a value object by
reference and a reference object by value?

Answer Posted / c

When you pass object by reference to any method, you are
passing reference (base pointer) to method. Any changes
done on this object will get reflected in object in caller.

When you pass any object by value, you are passing copy of
the object and not the reference.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Delegate and what is it used for ?

573


What is the main purpose of linq?

473


What is difference between static and constant variable?

524


Explain Constructor and destructor?

518


How to block a class from being inherited further?

479






What is the use of command builder?

530


What is the difference between static and private constructor?

469


Why is c# a good programming language?

471


What does int32 mean in c#?

460


Define xslt.

541


Where do we use serialization in c#?

494


Does c# support parameterized properties?

509


What is the use of readkey in c#?

485


can multiple catch blocks be executed for a single try statement?

520


What is boolean conditions in c#?

497