Diff.between object and reference?
What is the difference between value type and reference type ,where the object placed and where the reference is placed?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
AnttiRank #9,295 · 208 pointsPosted Dec 26, 2005, 5:22 AM EST
Value type variables are held in stack memory. Reference type references are held in stack memory, but the referenced object itself is held in heap memory.