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.



If a class is a ref type, how we can pass to a function...

Answer / 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

More C Sharp Interview Questions

Could you explain the difference between func vs action vs predicate?

0 Answers  


directcast(123.34,integer) - should it throw an error? Why or why not?

2 Answers   Wipro,


how dot net compiled code will become platform independent?

0 Answers  


I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?

0 Answers  


What is overriding in c#?

0 Answers  


Why is ienumerable used?

0 Answers  


Can a static class have a constructor c#?

0 Answers  


What is managed or unmanaged code?

0 Answers  


What is serialization and deserialization in c# with example?

0 Answers  


What is protected internal modifier in C#?

0 Answers   Arigo Infotech,


What is anonymous class in c#?

0 Answers  


Any exceptions are there which are not caught by any catch blocks? what are they?

5 Answers   Honeywell, TCS,


Categories