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

Why do we need ienumerable in c#?

562


Why does dllimport not work for me?

660


What is string class in c#?

564


What is the purpose of dependency injection?

571


Can a class be protected in c#?

564






What exception can an overridden method throw in comparison with the method it is overriding?

530


What happens if the inherited interfaces have conflicting method names?

661


What is assembly c#?

555


What is delegate in c#?

621


What is difference between private, protected, and public in C#?

641


What are data types with examples?

594


What is the default scope of a class in c#?

564


What is ac callback?

580


Does c# have a 'throws' clause?

671


explain the three services model commonly know as a three-tier application.

627