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
How to force my .net app to run as administrator on windows 7?
Distinguish between a class and struct?
What is void method?
What is the implicit name of the parameter that gets passed into the class set method?
What are functions in c#?
What is the components of window?
What is a static property. Give an example?
What are primitive types in c#?
Define a manifest in .net?
How you will create satellite assemblies?
Can we have only “try” block without “catch” block in c#?
What are regular expressions? Search a string using regular expressions?
what is an exception in .net?
Define Virtual folder?
What is a di class?