I have seen
Code: Select all
public class TrisExtension extends SFSExtension
{
private TrisGameBoard gameBoard;
and this reference is even accessing TrisGameBoard method reset
Code: Select all
void startGame()
{
if (gameStarted)
throw new IllegalStateException("Game is already started!");
lastGameEndResponse = null;
gameStarted = true;
gameBoard.reset(); <--------
how is this happening
I only know that object can access methods but how references are accessing.