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 extended class in c#?
When is a class declared as a class abstract?
What are desktop applications examples?
What is using keyword in C#?
Is a games console a computer?
What is the difference between int and int in c#?
Write one code example for compile time binding and one for run time binding? What is early/late binding?
What is the use of oops in c#?
What are primitive data types in c#?
What is ienumerable <> in c#?
Is int a struct in c#?
Define collections?
Can properties be static in c#?
How can we make a thread sleep for infinite period ?
What is the difference between private and protected in c#?