title: Method not a static member of a class
body: <p>Hello guys i had this error while i was compiling </p>
  
  <pre><code>error:'unisgned int vehicle::accelerate' is not a static member of 'class vehicle'
  </code></pre>
  
  <p>Any idea how to fix this?</p>
  
  <p>Header file</p>
  
  <pre><code>class vehicle
  {
      public:
      enum Switch
      {
       SWITCH_ON=0,
       SWITCH_OFF
                  };
       vehicle();
      ~vehicle();
  
      bool powerSwitch(Switch );
      unsigned int accelerate(unsigned int );
      unsigned int decelerate(unsigned int );
      bool isMoving();
      unsigned int getSpeed();
      unsigned int setSpeed(unsigned int);
  
  private:
  unsigned int speed;
  bool moving;
  };
  </code></pre>
  
  <p>vehicle.cpp</p>
  
  <pre><code>unsigned int vehicle::accelerate(amount)
  {
  
  if(moving==true;){
  speed+=amount;
   }
  
   return speed;
  
   }
  </code></pre>