title: Exception of type 'System.StackOverflowException' was thrown by WorldServer class
body: <p>Here is my code <code>WorldServer.cs</code>:</p>
  
  <pre><code>public class JsonData
  {
      public string header;
      public Dictionary&lt;string, string&gt; data = new Dictionary&lt;string, string&gt;();
      public int connectionId;
  }
  
  namespace Server
  {
      public class WorldServer
      {
          private Character character = new Character();
  
          void Test()
          {
              character.UpdateCharacterState();
          }
  
          public void Broadcast()
          {
              Console.WriteLine("We in Broadcast");
          }
      }
  }
  </code></pre>
  
  <p>Here is my <code>Character.cs</code>:</p>
  
  <pre><code>public class Character : WorldServer
  {
      public void UpdateCharacterState()
      {
          Console.WriteLine("State:");
          Broadcast();
      }
  }
  </code></pre>
  
  <p>And when i try to run my code i receive the following error:</p>
  
  <blockquote>
    <p>Exception of type 'System.StackOverflowException' was thrown.</p>
  </blockquote>
  
  <p>I have one base class <code>WorldServer</code> and one that extends it <code>Character</code>. I have to call from <code>WorldServer</code> class the method <code>UpdateCharacterState</code> and from <code>Character</code> class the <code>Broadcast</code> method which is declared in <code>WorldServer</code> class. Is it possible and how?
  Can you tell me where is my mistake and how can i fix it?</p>