I am trying to make an explicit constructor that calls the default constructor, but it says that i don't have one.
class Paddle{
private:
int x, y;
int startX, startY;
public:
Paddle(){
x = y = 0;
}
Paddle(int posX, int posY) : Paddle(){ // <-- the error is on ": Paddle()"
startX = posX;
startY = posY;
x = posX;
y = posY;
}
};
What exactly causes this to happen, and how can i fix it? Thanks in advance!