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 ienumerable t in c#?
What is the full form of GAC? Explain its uses?
What is a byte in c#?
What is an xsd file?
For read-only operation which property you have to designated?
What are strongly typed objects?
What is the difference between firstordefault and singleordefault?
What is a ienumerator?
Define an escape sequence, name few strings in escape sequence?
What does a constructor do c#?
Why linq is having select clause at the end?
Is dll a library?
What is an example of a delegate?
What is the difference between namespace and class?
What are the access modifiers in c#?