How do I set values for a class without using any setter methods?

Posted by fari on Stack Overflow See other posts from Stack Overflow or by fari
Published on 2010-04-08T00:52:43Z Indexed on 2010/04/08 1:03 UTC
Read the original article Hit count: 417

Filed under:
|
|

Please can anyone help me

public class KalaGameState implements Cloneable
{
   // your code goes here
   public KalaGameState(int startingStones) throws InvalidStartingStonesException
   {
   // your code goes here
   }

   public int getTurn()
   {
   // your code goes here
   }

   public int getKala(int playerNum) throws IllegalPlayerNumException
   {
   // your code goes here
   }

   public int getNumStones(int sidePitNum) throws IllegalSidePitNumException
   {
   // your code goes here
   }

   public int getNumStones(int playerNum, int sidePitNum) throws IllegalPlayerNumException,
   IllegalSidePitNumException
   {
   // your code goes here
   }

   public int getScore(int playerNum) throws IllegalPlayerNumException
   {
   // your code goes here
   }

   private int getSidePitArrayIndex(int sidePitNum) throws IllegalSidePitNumException
   {
   // your code goes here
   }

   public boolean gameOver()
   {
   // your code goes here
   }

   public void makeMove(int sidePitNum) throws IllegalSidePitNumException, IllegalMoveException
   {
   // your code goes here
   }
}

© Stack Overflow or respective owner

Related posts about java

Related posts about clone