title: using an object after it's destructor is called
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6441218/can-a-local-variables-memory-be-accessed-outside-its-scope">Can a local variable’s memory be accessed outside its scope?</a>  </p>
  </blockquote>
  
  
  
  <p><b> Code: </b><br/></p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  class B{
      public:
      int b;
      B():b(1){}
      ~B(){cout &lt;&lt; "Destructor ~B() " &lt;&lt; endl;}
  };
  
  class A{
      public:
      B ob;
      A()try{throw 4;}
      catch(...){cout &lt;&lt; "Catched in A() handler : ob.b= " &lt;&lt; ob.b&lt;&lt;endl;}
  };
  
  
  
  
  int main()try{
  A t;
  
  
  }
  catch(...){cout &lt;&lt; "CATCHED in Main" &lt;&lt;  endl;}
  </code></pre>
  
  <p><b> Output: </b><br/></p>
  
  <pre><code>Destructor ~B() 
  Catched in A() handler : ob.b= 1
  CATCHED in Main
  </code></pre>
  
  <p>My Question is how it's possible to access a member variable <code>b</code> of an object <code>ob</code> that its destructor call finished.</p>