私が持っているBST.hファイルに:
class node
{
public:
node* left;
node* right;
int key;
}
class BST
{
public:
void add(int newKey);
private:
node* root;
node* addHelper(node* nd, int newKey);
};
次に、bst.cpp ファイルに add および addHelper 関数を実装します。
 #include "BST.h"
    public void add(int newKey){
       addHelper(root,newKey); 
    }
   node* BST :: addHelper(Node* nd, int newKey)
   {
       //do something..
   } 
public add(int newKey)関数を 
void BST :: add(int newKey)bst.cpp で次のように定義する必要がありますか?