title: Is it possible to create loop which create instance of classes?
body: <p>I want to create console app which read userinput value and create multiple instances of one class and then run void say() in all class instances. 
  Code below:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading;
  using System.Threading.Tasks;
  
  namespace ConsoleApplication3
  {
      class Program
      {
          static void Main(string[] args)
          {
              int botsnumber = 0;
              Console.WriteLine("Type number: ");
              botsnumber = Int32.Parse(Console.ReadLine());
              for (int i = 0; i &lt; botsnumber; i++)
              {
                  //Here generate bots: Bot b1 = new Bot(); Bot b2 = new Bot(); 
                 // Bot b = new Bot(); 
              }
              b.say();// b1.say(); b2.say(); b3.say(); ...
          }
      }
  
      class Bot
      {
          public static void say()
          {
              Console.WriteLine("Hello!");
          }
      }
  }
  </code></pre>