Friday, February 16, 2018

Value Type and Reference Type

Value type defined in a function goes in stack while value type associated with a class object i.e declared as a member variable goes in heap.

Reference type variable declared as member goes in heap as well their reference, if reference type variable are declared in a function than those variable will goes in heap but their reference will goes in stack.


https://photos.google.com/share/AF1QipO_WWADgrm06nlnC5cUohzW3J2l3KlLCrOiz5QvaVlfCVlHi-O2_Lsh_2Hw1EyI-g?key=WHdmSmpNRk8ybVNHcmNsb0JNZ2lEdGhIR1FKUU5R

No comments:

Followers

Link