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

What is the difference between a method and a property?

956


What does async mean in c#?

944


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

991


What is difference between ienumerable and iqueryable in c#?

887


Can you create an instance of a static class?

962


What is throw in c#?

855


Is it possible to execute multiple catch block for a single try statement?

1018


What is use of FormBoarderStyle Propertie

881


What is ienumerable <> in c#?

855


Is learning c# hard?

882


What is uint c#?

860


What is a method signature?

951


What is the difference between ienumerable and enumerable?

862


Explain the Usage of web.config

965


How a two-dimensional array declared in C#?

917