There is only one constructor defined for class GameDice, specifically one that takes an integer parameter. You can either make a new constructor that takes no parameters or change the statements
GameDice dice1 = new GameDice();
GameDice dice2 = new GameDice();
to pass an int.
|