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 advantage of dependency injection?

992


How many kinds of elements an array can have?

929


What can we do to handle multiple exceptions?

1028


What are console applications used for?

919


Is a valid int value?

912


What is sqlcommand in c#?

893


How do I get deterministic finalization in c#?

1054


Explain how do I get deterministic finalization in c#?

923


What are data types in C#?

978


What can be done with c#?

821


If the original method is not static you can declare an override method to be static or not?

928


what are implementation inheritance and interface inheritance?

922


What is difference between write and writeline?

894


What is difference between singleordefault and firstordefault?

910


Can a struct inherit from another struct or class in c#?

916