title: How to put array information in class
body: <p>I have tried to do this, and read from internet how to use classes, but I still don't know, how do I define separate classes for customer and flight information?</p>
  
  <hr>
  
  <p>I made a program that reads the information of customers and their flights from the standard input device, and allows searching flight and customer information. When a flight information is searched the application should print the information for all of the customers on that flight. When a customer information is searched, the application should print the information of customer's flight too. </p>
  
  <p>I need to define separate classes for the customer and the flight information. The customer's class should contain name, id and flight id. The class should also define the constructor and a method which returns the customer's and his/her flight's info. </p>
  
  <p>The flight class should contain id, origin, destination and date. As well as the constructor and a method which returns the flight information if the correct flight id is passed to it. </p>
  
  <p>Hint: you need to define arrays of customer and flight objects to make the application work in a meaningful way.</p>
  
  <pre><code>string username;
  Console.Write("Customer or Flight ? c= Customer  f= Flight ");
  username = Console.ReadLine();
  
  string[] array = new string[5];
  
  Console.WriteLine("");
  array[0] = "Customer";
  array[1] = "Name";
  array[2] = "Id";
  array[3] = "Flight Id";
  
  string[] flight = new string[6];
  flight[0] = "Flight";
  flight[1] = "Id";
  flight[2] = "Origin";
  flight[3] = "Destination";
  flight[4] = "Date";
  
  for (int i = 0; i &lt; array.Length; i++)
  {        
      if (username =="c")
      {
          string c = array[i];
          Console.WriteLine(c);
      }
      else if(username =="f")
      {
          string f = flight[i];
          Console.WriteLine(f);
      }
      else
      {
          Console.WriteLine();
      }
  }
  
  Console.ReadLine();
  </code></pre>
  
  <p>sorry i'm new with c#, and I have done the rest, and I just need that part.</p>