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
What is difference between tostring() vs convert.tostring() vs (string) cast
What is use of singleton class in c#?
Is xml tags are case sensitive?
What are the drawbacks of extending an interface as opposed to extending a class?
Are value types sealed?
Explain states of a thread in c#?
Is collection a data structure?
What is session state in asp net c# with example?
Can the accessibility of a type member be greater than the accessibility of its containing type?
Can an abstract class inherit from another abstract class c#?
How to reduce image resolution in C#?
Can you declare a class or a struct as constant?
Can constructor be overloaded in c#?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
Can we make a Static Constructor Parameterized? Give Reason with your answer