title: I'm having some issues referencing a class to another class and the error I'm getting is I don't have an argument for a formal perimeter
body: <p>I have a Player class and I am trying to reference that class to my Main class. but I put some code in there that's giving me an error when I try and reference it to my main class. there is no given argument that corresponds to the required formal perimeter, 'statName' of 'Player.PLayer(string, int)' can someone help me? I'm pretty sure it has to do with mushing all the code together but I just don't know and am wanting a little help. here are my classes.</p>
  <p>here is my program class</p>
  <pre><code>class Program
  {
      PLayer Playerstat = new PLayer(); // I'm trying to reference the class Player here but it's not letting me.
      
      static void Main()
      {
          Console.WriteLine(&quot;please pick a mode&quot;);
          PLayGame();
          PickMode();
         
  
  
          Console.ReadKey();
      }
  
      public static void PLayGame()
      {
          List&lt;string&gt; Options = new List&lt;string&gt; { &quot;Easy mode: &quot;, &quot;med mode: &quot;, &quot;Hard mode&quot;, &quot;super hard mode: &quot; };
          
  
          foreach(string ModePick in Options)
          {
              Thread.Sleep(570);
              Console.WriteLine(ModePick);
          }
      }
  
      private static void PickMode()
      {
          string pick = Console.ReadLine();
          if (pick == &quot;easy&quot;)
          {
              Console.WriteLine(&quot;you have picked easy.&quot;);
          }
              
      }
  
      
  }
  </code></pre>
  <p>and here is my Player class</p>
  <pre><code>public class PLayer
  {
      public string Name;
      private int _statValue;
      private string _statName;
      public bool Dead;
  
      public PLayer(string statName, int statValue)
      {
          _statName = statName;
          _statValue = statValue;
      }
  
      public override string ToString() =&gt; _statName + &quot;: &quot; + _statValue;
  
      List&lt;PLayer&gt; stats = new List&lt;PLayer&gt;
      { new(&quot;Health&quot;, 100),
        new(&quot;Accuracy&quot;, 89),
        new(&quot;Blade Amount&quot;, 2),
        new(&quot;Blade Damage&quot;, 20),
        new(&quot;Blade Lanth&quot;, 40),
        new(&quot;Blade durablity&quot;, 50),
        new(&quot;Col&quot;, 0)
      };
  
      //all the NPCs you know. 
      List&lt;string&gt; Npc = new List&lt;string&gt; { &quot;levi: &quot;, &quot;Armin: &quot;, &quot;Mikasa: &quot;, &quot;Hange: &quot;, &quot;Erwin: &quot; };
      //skills for killing titans
      List&lt;string&gt; Skills = new List&lt;string&gt;();
  
      public void PrintStats()
      {
          Console.WriteLine(&quot;your stats are: &quot;);
          foreach (var stat in stats)
          {
              Thread.Sleep(575);
              Console.WriteLine(stat.ToString());
          }
      }
  
  }
  </code></pre>