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
Why do we need ienumerable in c#?
Why does dllimport not work for me?
What is string class in c#?
What is the purpose of dependency injection?
Can a class be protected in c#?
What exception can an overridden method throw in comparison with the method it is overriding?
What happens if the inherited interfaces have conflicting method names?
What is assembly c#?
What is delegate in c#?
What is difference between private, protected, and public in C#?
What are data types with examples?
What is the default scope of a class in c#?
What is ac callback?
Does c# have a 'throws' clause?
explain the three services model commonly know as a three-tier application.