If a class is a ref type, how we can pass to a function.



If a class is a ref type, how we can pass to a function...

Answer / 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

More C Sharp Interview Questions

What is dataadapter c#?

0 Answers  


What is the difference between overriding and overloading in systemverilog?

0 Answers  


What is value c#?

0 Answers  


What are the types of comment in c# with examples?

0 Answers  


What is a web service in c#?

0 Answers  






Explain About .NET Remoting and types of remoting

0 Answers  


Why ienumerable is used in c#?

0 Answers  


Is concurrent queue thread safe?

0 Answers  


Why do we use stringbuilder in c#?

0 Answers  


How to find methods of a assembly file (not using ILDASM)?

0 Answers  


What is dynamic object in c#?

0 Answers  


About multi level and multiple inheritance how to achieve in .net ?

2 Answers   CTS, MMTS,


Categories