title: Where is the class (including struct and dynamic variables) stored?
body: <p>Suppose I have the following class:</p>
  
  <pre><code>class message
  {
      private:
          HeaderType header;
          // Message text
          byte * text;    
  
      public:
          message(int ID,struct in_addr senderIP);
          ~message();
          HeaderType getHeader();
          byte * getText();
  };
  </code></pre>
  
  <p>where HeaderType is a struct as follows:</p>
  
  <pre><code>typedef struct {
      int mID;
      struct in_addr mIP;
  }HeaderType;
  </code></pre>
  
  <p>Where is the class (including struct and dynamic variables) stored (Stack, heap ...)?</p>
  
  <p>P.S. I declare a <code>message m</code> as a static variable.</p>