title: Can't set data into list and then print it.
body: <p>I am trying to store data into a complex type list and then print it later. I am trying to use properties and then print it but it seems like I am missing something. Please help.</p>
  
  <pre><code>    class Program
  {
      static void Main(string[] args)
      {
          Console.WriteLine("Enter Color");
          string color = Console.ReadLine();
          Console.WriteLine("Enter transmition");
          string transmition = Console.ReadLine();
          Console.WriteLine("Enter Name");
          string name = Console.ReadLine();
          List&lt;DatabaseCar&gt; arr = new List&lt;DatabaseCar&gt; { };
          DatabaseCar databaseCar = new DatabaseCar(color, transmition, name);
          arr.Add(databaseCar);
          foreach (DatabaseCar data in arr)
          {
              Console.WriteLine(data);
          }
          Console.ReadKey();
      }
  }
  
  abstract class Data
  {
      protected string color;
      protected string engine;
      protected string name;
  
      public abstract void set(string color, string engine, string name);
  
      public string Color
      {
          get
          {
              return color;
          }
      }
      public string Engine
      {
          get
          {
              return engine;
          }
      }
      public string Name
      {
          get
          {
              return name;
          }
      }
  }
  
  class DatabaseCar : Data
  {
      public override void set(string color, string engine, string name)
      {
          this.color = color;
          this.engine = engine;
          this.name = name;
      }
  
      public DatabaseCar(string color, string engine, string name)
      {
          set(color, engine, name);
      }
  }
  </code></pre>
  
  <p>The result I get from it is:</p>
  
  <p>Enter Color:
  Red
  Enter transmition:
  Manual
  Enter Name:
  John
  ConsoleApp1.DatabaseCar</p>