title: How objects (reference types- heap) communicate with variables stored on stack
body: <p>as we know reference types are always stored on heap and value types are in stack memory.</p>
  
  <p>e.g.</p>
  
  <pre><code>public Class A{
    public int myInt=10;
    public void Display(){
    }
  }
  </code></pre>
  
  <p>here, if i create object of class <code>A</code> it goes in heap and <code>myInt</code> goes in stack right..?</p>
  
  <p>now, how class object (heap) interact with <code>myInt</code> public variable (stack)?</p>
  
  <p>can anybody please explain it..</p>