title: Declaration is incompatible with type
body: <p>header file:</p>
  
  <pre><code>#ifndef H_bankAccount;
  #define H_bankAccount;
  
  
  class bankAccount
  {
  public:
      string getAcctOwnersName() const;
      int getAcctNum() const;
      double getBalance() const;
      virtual void print() const;
  
      void setAcctOwnersName(string);
      void setAcctNum(int);
      void setBalance(double);
  
      virtual void deposit(double)=0;
      virtual void withdraw(double)=0;
      virtual void getMonthlyStatement()=0;
      virtual void writeCheck() = 0;
  private:
      string acctOwnersName;
      int acctNum;
      double acctBalance;
  };
  #endif
  </code></pre>
  
  <p>cpp file:</p>
  
  <pre><code>#include "bankAccount.h"
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  using std::string;
  
  
  string bankAccount::getAcctOwnersName() const
  {
      return acctOwnersName;
  }
  int bankAccount::getAcctNum() const
  {
      return acctNum;
  }
  double bankAccount::getBalance() const
  {
      return acctBalance;
  }
  void bankAccount::setAcctOwnersName(string name)
  {
      acctOwnersName=name;
  }
  void bankAccount::setAcctNum(int num)
  {
      acctNum=num;
  }
  void bankAccount::setBalance(double b)
  {
      acctBalance=b;
  }
  void bankAccount::print() const
  {
      std::cout &lt;&lt; "Name on Account: " &lt;&lt; getAcctOwnersName() &lt;&lt; std::endl;
      std::cout &lt;&lt; "Account Id: " &lt;&lt; getAcctNum() &lt;&lt; std::endl;
      std::cout &lt;&lt; "Balance: " &lt;&lt; getBalance() &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>Please help i get an error under getAcctOwnersName, and setAcctOwnersName stating that the declaration is incompatible with "&lt; error-type > bankAccount::getAcctOwnersName() const".</p>