title: Call method in class from another class in C#
body: <p>I have a small problem when I'm trying to call method from another class (not Main class). Here's my testing code:</p>
  
  <pre><code>using System;
  
  namespace ConsoleApplication3
  {
      public class Program
      {
          static void Main(string[] args)
          {
              Class1 cl = new Class1();
              cl.TestMethod();
          }
      }
  
      public class Class1
      {
          public string TestMethod()
          {
              return "test";
          }
      }
  
      public class Class2
      {
          Class1 cl = new Class1();
          cl.TestMethod(); //Error here
      }
  }
  </code></pre>
  
  <p>What should I do to call TestMethod in Class2?</p>