title: How to initialize a class in C++?
body: <p>I'm making a simple Binary Tree program, and I would like to initialize the left and right node. I've been trying to do it like this:</p>
  
  <pre><code>class Tree{
       Tree* left = new Tree();
       Tree* right = new Tree();
  }
  </code></pre>
  
  <p>This is supposed to give me an accessible memory on the heap which I can use to access the left and right nodes, correct? However, it doesn't seem like that's the case. I've also tried doing this through constructors too with no luck.</p>
  
  <p>Is there a way to properly initialize a class in C++?
  Thank you for your time.</p>