title: In member function errors c++
body: <p>I am receiving some errors when compiling my code. </p>
  
  <pre><code>circleTypeImp.cpp: In member function âdouble circleType::getRadius() constâ:
  circleTypeImp.cpp:10: error: argument of type âdouble (circleType::)()constâ does not match âdoubleâ
  circleTypeImp.cpp: In member function âdouble circleType::setAreaCircle() constâ:
  circleTypeImp.cpp:15: error: invalid use of member (did you forget the â&amp;â ?)
  circleTypeImp.cpp: In member function âdouble circleType::setCircumference() constâ:
  circleTypeImp.cpp:20: error: invalid use of member (did you forget the â&amp;â ?)
  pointTypeImp.cpp: In member function âvoid pointType::setXCoordinate(double)â:
  pointTypeImp.cpp:9: error: âxâ was not declared in this scope
  pointTypeImp.cpp: In member function âvoid pointType::setYCoordinate(double)â:
  pointTypeImp.cpp:14: error: âyâ was not declared in this scope
  pointTypeImp.cpp: At global scope:
  pointTypeImp.cpp:23: error: prototype for âdouble pointType::getXCoordinate(double)â does not match any in class âpointTypeâ
  pointTypee.h:15: error: candidate is: double pointType::getXCoordinate() const
  pointTypeImp.cpp:28: error: prototype for âdouble pointType::getYCoordinate(double)â does not match any in class âpointTypeâ
  pointTypee.h:16: error: candidate is: double pointType::getYCoordinate() const
  </code></pre>
  
  <p>I have overlooked my code and I cant seem to see what is wrong with it. If someone could point it out to me what is needing to be done, I'd appreciate it. I am not looking for someone to do it for me, I am just needing some help figuring it out. </p>
  
  <pre><code>//main.cpp
  
  #include "pointTypee.h"
  #include "circleTypee.h"
  #include &lt;iostream&gt;
  
  using namespace std;
  int main()
  {
      pointType p;
      circleType c;
  
      double rad;
      double area;
      double circum;
  
  
      double x;
      double y;
  
      cout &lt;&lt; "Enter the x coordinate " &lt;&lt; endl;
      cin &gt;&gt; x;
      cout &lt;&lt; endl;
      cout &lt;&lt; "Enter the y coordinate " &lt;&lt; endl;
      cin &gt;&gt; y;
      cout &lt;&lt; endl;
      cout &lt;&lt; "The X &amp; Y coordinates are: (" &lt;&lt; x &lt;&lt; "," &lt;&lt; y &lt;&lt; ")" &lt;&lt; endl;
      cout &lt;&lt; "The area of the circle is: ";          //Add 
      cout &lt;&lt; "The circumference of the circle is: "; //Add 
  
  }
  
  
  //PointType.cpp
  
  #include "pointTypee.h"
  #include &lt;string&gt;
  #include &lt;iostream&gt; 
  
  void pointType::setXCoordinate (double xcoord)
  {
      xcoord = x;
  }
  
  void pointType::setYCoordinate (double ycoord)
  {
      ycoord= y;
  }
  
  void pointType::print() const
  {
      cout &lt;&lt; "The center point is at (" &lt;&lt; xcoord &lt;&lt; "," &lt;&lt; ycoord &lt;&lt; ")" &lt;&lt; endl;
      cout &lt;&lt; endl;
  }
  
  double pointType::getXCoordinate(double xcoord)
  {
      return xcoord;
  }
  
  double pointType::getYCoordinate(double ycoord)
  {
      return ycoord;
  }
  pointType::pointType(double xcoord, double ycoord)
  {
       xcoord=0;
       ycoord=0;
  
  }
  
  
  
  //pointType.h
  
  #ifndef POINTTYPEE_H
  #define POINTTYPEE_H
  #include &lt;string&gt;
  
  using namespace std;
  
  class pointType
  {
  public:
      void print() const;
      void setXCoordinate(double xcoord);
      void setYCoordinate(double ycoord);
      double getXCoordinate() const;
      double getYCoordinate() const;
      pointType(void);
      pointType(double xcoord, double ycoord);
      ~pointType(void);
  
  private:
      double xcoord;
      double ycoord;
  
  };
  #endif
  
  
  //circleType.h
  
  #ifndef CIRCLETYPEE_H
  #define CIRCLETYPEE_H
  
  #include "pointTypee.h"
  
  class circleType : public pointType
  {
  public: 
      //circleType(double xcoord, double ycoord, double radius);
      void print() const;
      double setAreaCircle() const;
      double setCircumference() const;
      double getRadius() const;
      circleType(double xcoord, double ycoord, double radius);
      ~circleType(void);
      circleType();
      //virtual ~circleType();
  
  private:
      double radius() const;
      static double pie;
  
  };
  #endif 
  
  
  
  //circleTypeImp.cpp
  
  #include "circleTypee.h"
  #include "pointTypee.h"
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  
  double circleType::getRadius()const
  {
      return radius;
  }
  
  double circleType::setAreaCircle () const
  {
      return 3.14 * radius * radius;
  }
  
  double circleType::setCircumference() const
  {
      return 3.14 * 2 * radius;
  }
  
  circleType::circleType()
  {
      //circleType::circleType();
  }
  
  circleType::~circleType()
  {
  
  }
  
  double pie = 3.14;
  </code></pre>