05-02-2011, 05:14 PM
Sir, 1)My question is why we have declared these two TreeNode pointers left , right within the same TreeNode class, can we use other pointers like integer or etc? 2)If we have declared TreeNode pointers within the same class then these pointers also holds the value like Object , left and right? All I am asking cause behind doing this I have a sort of confusion with this, plz explain briefly.... Class TreeNode { private: Object * object; TreeNode * left; TreeNode * right; 62. }; // end class TreeNode };
