If a class is a ref type, how we can pass to a function.
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between a method and a property?
What does async mean in c#?
Explain About multi level and multiple inheritance how to achieve in .net
What is difference between ienumerable and iqueryable in c#?
Can you create an instance of a static class?
What is throw in c#?
Is it possible to execute multiple catch block for a single try statement?
What is use of FormBoarderStyle Propertie
What is ienumerable <> in c#?
Is learning c# hard?
What is uint c#?
What is a method signature?
What is the difference between ienumerable and enumerable?
Explain the Usage of web.config
How a two-dimensional array declared in C#?