the constructor pacman(int,int,int,int) is undefined

here is the constructor pacman pac=new pacman(width/2,height/2,15,15);

here is the class

private int x,y,speedx,speedy;
  pacman(int xpos, int ypos, int speedXpos,int speedYpos){
    x=xpos;
    y=ypos;
    speedx=speedXpos;
    speedy=speedYpos;
  }
Tagged:

Answers

Sign In or Register to comment.