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
Is var a data type?
What is final keyword in c#?
Can abstract class have private constructor c#?
What is dbcontext c#?
What do you mean by generic class in c#?
In C#, explain the difference between overloading and overriding.
Describe two uses of the “using” statement during the operation of c#?
Is unboxing an implicit conversion?
Can we set image Source dynamically using C# in WPF application?
Explain the difference between a Private Assembly and a Shared Assembly
What is regex c#?
Explain about multithreading?
What is sql transaction in c#?
What are c# attributes and its significance?
What is the difference between abstract and abstraction?