title: What is the proper way to make a destructor for this binary node class?
body: <pre><code>class node{
  
  private:
  node* parent;
  node* leftchild;
  node* rightchild;
  // etc.... 
  }
  </code></pre>
  
  <p>I don't want to create  an infinite cycle with destructor that's why I'm interested how can I make a good  constructor for it.</p>