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
How to put assembly in gac?
What is called method in c#?
How to implement a singleton design pattern in c#?
How do I do implement a assert?
List down the differences between public, static and void keywords?
How do I edit a dll file?
What is a type c#?
What is array and arraylist?
Why singleton is sealed?
What does int parse do in c#?
What is single dimensional array in c#?
Why delegates are type safe?
How many bits is int32?
Define parsing?
Can a constructor be private in c#?