Error: expected constructor, destructor, or type conversion before '(' token

Whenever I run my code I get the error message expected constructor, destructor, or type conversion before '(' token. I am not too sure what its asking as I have already added a constructor and a deconstuctor in my code. This is my code: (I am writing a library)

#include "ServoMotor.h"

CServoMotor::CServoMotor()
{
  
}

CServoMotor::~CServoMotor()
{
  
}

CServoMotor::begin()
{
  motorSpeed = 0;
  duration = 0;
}

CServoMotor::driveF(motorPin, motorSpeed, duration)
{
  analogWrite(motorPin, motorSpeed);
  delay(duration);
  analogWrite(motorPin, 0); 
}

CServoMotor::driveB(motorPin, motorSpeed, duration)
{
  analogWrite(motorPin, -motorSpeed);
  delay(duration);
  analogWrite(motorPin, 0); 
}

And my header file is

class CServoMotor
{
  public:
  CServoMotor();
  ~CServoMotor();

  begin();
  void driveF();
  void driveB();
  
  protected:
  
  int motorPin;
  int motorSpeed;
  int duration;
};

Any help would be appreciated. Thanks.

CServoMotor::driveB(motorPin, motorSpeed, duration)
{

What’s that?
(Ditto for driveF)

driveF and driveB is forward and backward

I guessed that.
What is missing?

I... dont know

Data types

wow how did I forget that. Thanks dude

and void begin(); and void CServoMotor::begin()