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
can you declare an override method to be static if the original method is not static?
Explain how do you debug an asp.net web application?
How big is a 64 bit integer?
Explain the use of virtual, sealed, override, and abstract method?
How to sort an int array in c#?
Explain about Serialize and MarshalByRef?
Does c# support multiple inheritance (mi)?
What is Event - Delegate?
How to transpose multi-dimensional array?
What is the use of console readkey in c#?
What is the difference between private and protected in c#?
What are c# i/o classes? What are the commonly used i/o classes?
What is the use of static members with example using c#.net.
What is regex replace in c#?
Why do we use class in c#?