title: <function> is not a member of <class>
body: <p>I have declared my function 'Credit' as a private member with some arguments. My observation is that whenever I try to compile without any argument the compiler will compile successfully. but as soon as I compile with the arguments in the function, the compiler gives an error</p>
  
  <blockquote>
    <p>'Transaction :: Credit' is not a member of 'Transaction'</p>
  </blockquote>
  
  <p>Here is my code</p>
  
  <pre><code>class Transaction : public Menu
  {
  private :
  
      void Credit(int depost);//{ return 0;}
  
  public :
      void Deposit();
      void Withdraw(){}
      void Transfer(){}
  };
  
  void Transaction :: Deposit()
  {
         char custid[10]; int deposit;
  
         clrscr();
         cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl;
         cout &lt;&lt; "\t\t\t\t  DEPOSIT " &lt;&lt; endl;
         cout &lt;&lt; "\t\t   Please enter your Customer ID" &lt;&lt; endl;
         cin  &gt;&gt; custid;
         cout &lt;&lt; "\t\t   Please enter the amount you want to deposit (in Rupees)" &lt;&lt; endl;
         cin  &gt;&gt; deposit;
  
   //      Credit (depost);
  }
  
  void Transaction :: Credit (depost)
  {
  
  }
  </code></pre>
  
  <p>I am using Turbo C++, so please guide me according this IDE.</p>