title: Binary Search Tree Copy Constructor | C++
body: <pre><code>BST::BST()
  
  {
      
  root = nullptr;
  
  }
  
  BST::BST(const BST&amp; rhs)
  
  {
  
      root = rhs.root;
      root-&gt;left = rhs.root-&gt;left;
      root-&gt;left = rhs.root-&gt;left;
  
  
      TreeNode* DeepCopy = new TreeNode;
      if (root != nullptr)
      {
          DeepCopy-&gt;info = rhs.root-&gt;info;
          DeepCopy-&gt;left = rhs.root-&gt;left;
          DeepCopy-&gt;right = rhs.root-&gt;right;
      }
  
  // Will this make a deep copy of the entire tree?
  
  }
  </code></pre>