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

How to force my .net app to run as administrator on windows 7?

974


Distinguish between a class and struct?

922


What is void method?

945


What is the implicit name of the parameter that gets passed into the class set method?

977


What are functions in c#?

910


What is the components of window?

896


What is a static property. Give an example?

948


What are primitive types in c#?

978


Define a manifest in .net?

999


How you will create satellite assemblies?

968


Can we have only “try” block without “catch” block in c#?

868


What are regular expressions? Search a string using regular expressions?

878


what is an exception in .net?

930


Define Virtual folder?

1018


What is a di class?

1076