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 are the differences between static, public and void in c#?
What is the difference between ref and out in c#?
Can int be null c#?
What is generic delegate in c#?
How long can loop recorders stay in?
Why would you use untrusted verification?
Explain hash table in c# ?
What is parallel foreach in c#?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates
What is the max value of int32 in c#?
Which of the following API is used to hide a window?
Are there constructors in c sharp?
Explain about accessibility modifier 'protected internal'?
Why do we need oops in c#?
What are delegate methods?