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 asp net in c#?
What is difference between ienumerable and iqueryable in c#?
How long will it take to learn c sharp?
What is marshalling in c#?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What are the fundamental principles of oo programming?
What is the difference between an application domain and a process?
Can we have two main methods in c#?
Why do we need structs in c#?
What is icomparer in c#?
What is overloading in c#?
How do I move from one form to another in c#?
What is the difference between “finalize” and “finally” methods in c#?
If the original method is not static you can declare an override method to be static or not?
What is serialization in unity?