I am bit confused about it that where does the data members of a class are stored, in stack or heap.
If i have below code:
- class Test
- {
- int A = 0;
- }
then, where does "A" stores?
I know value types stores in stack and reference types stores in heap, so class "Test" would store in Heap, but confused about "A".
Could anyone help me to understand this.