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

What do you mean by jagged arrays in c#?

478


What does this keyword mean in c#?

517


What is get set in c#?

558


What is difference between sleep () and wait ()?

488


Why is ienumerable used?

499






What is the console on a mac?

474


How are delegates chosen?

458


What is the difference between method parameters and method arguments. Give an example?

511


What is wcf c#?

516


Why do we overload constructors?

486


Why to use lock statement in c#?

490


Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

1445


Can we use "this" command within a static method?

549


what are the Disadvantages of vb

595


the c# keyword .int. Maps to which .net type?

744