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
what is the Difference between the public and private ?
What are constants in c#?
What is readline library?
what is IComparable
What is difference between private and protected?
Can dictionary have duplicate keys c#?
How do I create a single-file assembly?
How do I open the console window?
Is visual c# free?
What is use of a HashTable in .NET?
What is this keyword in C#?
In how many ways you can overload a method?
What's c# ?
Can namespace contain the private class?
Does the variables of a private class-level inherited?