title: Source of build error "expected primary-expression before 'float' " in simple implementation of inheritance
body: <p>I cannot seem to find why I am getting the build error</p>
  
  <blockquote>
    <p>expected primary-expression before "float"</p>
  </blockquote>
  
  <p>In this implementation...</p>
  
  <pre><code>using namespace std;
  
  class Point{
  public:
  
  Point(float X = 0.0, float Y = 0.0);
  
  void set(float X, float Y);
  void setX(float X);
  void setY(float Y);
  
  void get(float * P_x, float * P_y);
  float getX();
  float getY();
  
  float * pX();
  float * pY();
  
  SDL_Point returnSDL();
  
  private:
  float x;
  float y;
  };
  
  
  class Vector : public Point{
  public:
      Vector(float X = 0.0, float Y = 0.0);
  };
  
   ///The errors occur in this constructor...
  Vector::Vector(float X, float Y) : Point(float X, float Y){
  
  }
  </code></pre>
  
  <p>Im still learning about the finer points of classes and would appreciate any help. I know it has something to do with the inheritance because when <code>Vector</code>  doesn't inherit <code>Point</code> the program builds normally. As far as i can tell this is the correct syntax and implementation of inheritance. Web help i have found cannot answer so far.</p>