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


Please Help Members By Posting Answers For Below Questions

Explain the accessibility modifier protected internal?

466


What is check/uncheck?

603


What is int32 in c#?

504


Explain dataadapter.update method in .net?

520


Can interface have virtual methods in c#?

471






What is yield in c#?

499


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

526


What are the value types in c#?

509


Are multiple data types stored in System.Array?

654


What is difference between array and collection in c#?

443


What is the difference between namespace and class?

437


Is array a list?

489


What is generic delegate in c#?

461


What are assemblies?

543


What is function c#?

492