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

Why do we need generics in c#?

936


What is .net c#?

913


Can you declare a class or a struct as constant?

1074


can you create a function in c# which can accept varying number of arguments

1083


write a program to find the biggest palindrome in the given string

964


What is the interface in c#?

959


Can we inherit two classes in c#?

955


How to sort an int array in c#?

966


What is the extension of c# file?

1032


Explain About web methods and its various attributes

981


What is a c# delegate?

1079


What is difference between Trace and Debug

1089


Define constructor in c#.

912


What is c sharp used for?

906


What is difference between write and writeline in c#?

907