As Value type variable allocates memory in Stack where as Reference Type allocates it in Heap.
So how the memory allocated when a value type variable(eg int i =4;) is d
So how the memory allocated when a value type variable(eg int i =4;) is declared in the reference type (eg. in a class).
If the object lies on heap, it means all it's member variable(s) lies there.