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...

What is the Difference between value and reference type?

Answer Posted / ajay

whenever a datatype is defined based on a structure it is said to be value type datatype.
whenever a datatype is derived from class definition then it is said to be reference type datatype.

value type memory allocated in stack
reference type memory allocated in heap

Inheritance is not support by the Value type members
Inheritance is support by the Reference type members

Value type data type are byte,int,uint,float,Double,decimal,char and bool
Reference type data type are string,class,objects,Enwn,interface and delegates

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface inheritance?

957


How do you specify a custom attribute for the entire assembly (rather than for a class)?

957


What is difference between private and protected in c#?

980


What is int tryparse in c#?

952


What’s a strong name?

1001


How to use delegates with events?

990


What is the difference between a method and a property?

1035


What will be the output of the following code?

927


What is .net c#?

910


What is a verbatim string literal and why do we use it?

954


Which operator cannot be overloaded in c sharp?

876


Where are value types stored in c#?

1048


What is dll hell, and how does .net solve it?

970


What is difference between internal and protected internal in c#?

945


Which technology is best for desktop application?

864