title: Java class definiton?
body: <p>So I'm fairly new to the language, and my teacher just gave us this asignment where we create a game using 5 classes. He gave us the class names, and told us to go off of the code in our text book. </p>
  
  <p>From the assignment sheet: <br/>
  1. Create a Pig Game for exactly two players, a user is one and the computer is the other.  You will have to create exactly five classes and they are:<br/>
       a. Die<br/>
       b. Pair of Die<br/>
       c. Player <br/>
       d. PigGame or PigReferee <br/>
       e. PlayPig (this will contain the main driver)</p>
  
  <p>Code given:</p>
  
  <pre><code>import java.util.Random;
  
  public class Die {
      private final int MIN_FACES = 4;
  
      private static Random generator = new Random();
      private int  numFaces; //number of sides on the die
      private int faceValue; //current value showing on the die
  
      //-----------------------------------------------------------------------------------|
      //  Defaults to a six-sided die. Initial face value is 1.                            |
      //-----------------------------------------------------------------------------------|
      public Die(){
          numFaces = 6;
          faceValue = 1;
      }
  
      //-----------------------------------------------------------------------------------|
      //Explicitly sets the size of the die. Defaults to a size of six if the parameter is |
      //invalid. Initial face value is 1.                                                  |
      //-----------------------------------------------------------------------------------|
      public Die(int faces){
          if (faces &lt; MIN_FACES){
              numFaces = 6;
          }
          else{
              numFaces = faces;
          }
          faceValue = 1;
      }
  
      //-----------------------------------------------------------------------------------|
      //  Rolls the die and returns the result.                                            |
      //-----------------------------------------------------------------------------------|
      public int roll(){
          faceValue = generator.nextInt(numFaces) + 1;
          return faceValue;
      }
  
      //-----------------------------------------------------------------------------------|
      //  Returns the current faceValue.                                                   |
      //-----------------------------------------------------------------------------------|
      public int getFaceValue(){
          return faceValue;
      }
  }
  </code></pre>
  
  <p>So my question is, is Die the only current class, or does the "public int roll" count as a class as well. What makes a class? Thanks, Dizzy</p>