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
Explain the steps to create satellite assembly?
What are destructors in C#?
Is there any sample c# code for simple threading?
What is difference between assembly and dll?
What do you understand by an Implicit Variable?
how dot net compiled code will become platform independent?
What are the Types of caching
What is static classes?
What is the difference between abstract and abstraction?
Value Type and Reference Type Data type in C#?
How does inheritance work in c#?
Difference between a sub and a function in c#.
Can destructors have access modifiers?
What is lazy loading and eager loading in c#?
What are the various components in crystal reports?