package com.codegym.games.snake;
import com.codegym.engine.cell.*;
class Game {
public static final int HEIGHT = 15;
public static final int WIDTH = 15;
public static int setScreenSize(int HEIGHT, int WIDTH){
int local = WIDTH * HEIGHT;
return local;
}
}
public class SnakeGame extends Game {
//@Override
public void initialize()
{
setScreenSize(15,15);
}
}
This is wgong
• The SnakeGame class must inherit the Game class.
The Game class's setScreenSize(int, int) method must be called with arguments (WIDTH, HEIGHT) in the initialize() method.
can somebody help mi to solve What's wrong ?
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet