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 extended class in c#?

910


When is a class declared as a class abstract?

987


What are desktop applications examples?

949


What is using keyword in C#?

1030


Is a games console a computer?

928


What is the difference between int and int in c#?

1031


Write one code example for compile time binding and one for run time binding? What is early/late binding?

1028


What is the use of oops in c#?

911


What are primitive data types in c#?

943


What is ienumerable <> in c#?

902


Is int a struct in c#?

904


Define collections?

964


Can properties be static in c#?

1004


How can we make a thread sleep for infinite period ?

1004


What is the difference between private and protected in c#?

936