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 c sharp language?
What is ienumerator c#?
Distinguish between continue and break statement?
What is an xsd file?
What is the difference between const and static read-only?
What is sqldatareader c#?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
Explain the difference between a struct and a class?
What is a concrete class in c#?
Can private virtual methods be overridden in c#.net?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
What is lazy in c#?
Why c# is called type safe language?
Does c# have primitives?
What is yield c#?