I am implementing an interface:
public interface Consultant {
It uses a different interface:
public interface GameBoard { CellState getCellState(CellLocation cellLocation); }
I wrote many methods, but just started to implement the method of all the important sentences. It looks like this:
public class YourConsultant implements Consultant { @Override public CellLocation suggest(GameBoard gameBoard) { char[][] arrayBoardGlobal; Player currentPlayerGlobal; GameState gameStateGlobal; return null; } }
But I get an error
The method proposed in the YourConsultant type can set only one of the public / protected / private
Of course, I canβt change it from the public to another, due to the interface.
What could be the reason? I did not find the answer here or on the network, probably because it reveals basic information about access modifiers. I am using Eclipse Neon.
Gregt source share