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

What is the difference between package and interface?

882


When is a class declared as a class abstract?

940


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

902


How many destructors can a class have?

986


Describe ways of cleaning up objects in c#.

852


How to declares a two-dimensional array in C#?

989


What is difference between array and list?

889


What is garbage collector and where should you use in .NET?

942


Why interface is required?

787


Why abstract class can not be instantiated?

826


Is an array an object c#?

891


What are the collections in c#?

858


Explain concurrency with aop?

919


Which attribute is used in order that the method can be used as webservice?

903


What is callback in c#?

852