Question: Starter Code Here is part of the Tree class def. You need to find out what's missing and fill it in. class Tree { private:













Starter Code Here is part of the Tree class def. You need to find out what's missing and fill it in." class Tree { private: struct Node { / / Inner class std: :string data; Node * sibling, *_child; static bool is_equal (const Node *pl, const Node *p2) ; Node (std: : string s = "") : // TODO Node (const Node &that) ; / / TODO const Node Goperator=(const Nodes that) ; // Deep clone ~Node () ; std: : string get_data () const { return data; } void set_data (std: :string s) { _data = s; } Node *insert_sibling (Node *p) ; Node *insert_child (Node *p) ; std: :string to_string () const; bool operator==(const Node &that) const; bool operator!=(const Node &that) const; Node * root; public: Tree () ; -Tree () ; Tree (const Trees that) { *this = that; } Trees operator=(const Trees that) ; // Deep clone std: :string to_string () const; void make_special_config 1 (const std: :vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
