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 having 4 variables namely type double,type
integer,type string,type decimal.

If we create an instance of that class those variables which
gets into this instance are value types or reference types?

Answer Posted / parmjit

It depends upon member's data type.

If it is of primitive type, structure or enum type, it will
be of value type

Otherwise it will be of reference type.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of these string definitions will prevent escaping on backslashes in c#?

1053


To catch any possible exception What is the C# syntax written ?

1041


What is the output of TextWriterTraceListener redirected?

1111


Describe how a .net application is compiled and executed

979


What is the use of generics in c#?

912


What is parsing?

978


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

1053


What is public void in c#?

1045


Which is faster abstract class or interface in c#?

1035


What is the main purpose of delegates in c#?

1020


What is sorting in c#?

1082


What is dll file in c#?

1020


Explain how do you convert a value-type to a reference-type?

926


What is asenumerable in c#?

953


Explain the difference between a Private Assembly and a Shared Assembly

1027