Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is var a data type?

887


What is final keyword in c#?

922


Can abstract class have private constructor c#?

902


What is dbcontext c#?

920


What do you mean by generic class in c#?

871


In C#, explain the difference between overloading and overriding.

1041


Describe two uses of the “using” statement during the operation of c#?

895


Is unboxing an implicit conversion?

952


Can we set image Source dynamically using C# in WPF application?

1008


Explain the difference between a Private Assembly and a Shared Assembly

905


What is regex c#?

860


Explain about multithreading?

959


What is sql transaction in c#?

848


What are c# attributes and its significance?

900


What is the difference between abstract and abstraction?

802