If a class is a ref type, how we can pass to a function.
Answer / sujai cn
We can pass the object to a function by pass by reference
type.
create an object and pass that object to the function.
when we pass the object to function a copy constructor is
used to create a bit wise copy of the object sent to the
function.If there is no copy constructor implemented the
default copy constructor is called.
Is This Answer Correct ? | 3 Yes | 1 No |
What is difference between interface inheritance and class inheritance ?
How many dimensions can an array have?
How can I create image pieces/sub image?
Can you override private virtual methods?
What is the difference between dll and lib?
Can bool be null c#?
Illustrate race condition?
What is string in c# net?
f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.
What is method and function in c#?
Explain acid rule of thumb for transactions in c#.
What is the state of Garbage Collection after dispose() call info C# code?