title: Constructor is already defined in class
body: <p>I am beginning to learn java, and am coding a simple hockey statistics class. It looks like this:</p>
  
  <pre><code>public class Player 
  {
      private int games; 
      private int goals;
      private int assists;
      private char position;
  
  
      public Player()
      {
          games = 0;
          goals = 0;
          assists = 0;
          position = 'X';
      }
  
  
      public Player(int initialGames, int initialGoals, int initialAssists, 
      char initialPosition )
  
      {
          games = initialGames;
          goals = initialGoals;
          assists = initialAssists;
          position = initialPosition;
  
      } 
  
      public void setPlayer(int newGames, int newGoals, int newAssists, char 
  newPosition)
      {
          games = newGames;
          goals = newGoals;
          assists = newAssists;
          position = newPosition;
  
      } 
  
      public Player(int initialGames)
      {
          games = initialGames;
          goals = 0;
          assists = 0;
          position = 'X';
      }
  
      public void setGames(int newGames)
      {
          games = newGames;
      }
  
      public Player(int initialGoals)
      {
          games = 0;
          goals = initialGoals;
          assists = 0;
          position = 'X';
      }
  
  
  }
  </code></pre>
  
  <p>Now, this all compiles fine until I enter the code for the last block. When I try to compile it, I get this error: </p>
  
  <p>(Player.java:52 error: constructor Player(int) is already defined in class Player) </p>
  
  <p>What am I doing wrong? I am following the format of my textbook quite closely to build this class, but I keep running into this error. Can anyone give me a reason why this is happening? Because I do not fully understand this compiler error.</p>