Hi all,
as we know reference types are always stored on heap and value types are in stack memory.
e.g.
public Class A{
public int myInt=10;
public void Display(){
}
}
here, if i create object of class A
it goes in heap and myInt
goes in stack right..?
now, how class object (heap) interact with myInt
public variable (stack)?
can anybody please explain it..