title: Getting a null value when try to output
body: <pre class="lang-cs prettyprint-override"><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Week7_A
  {
      class Experiment
      {
          public  string NAME { get; set; }
          private int NUM { get; set; }
      private string COLOR;
          private double WEIGHT;
          private double VOLUME;
          private string[] colors = new string[6] {&quot;Crimson&quot;, &quot;Azure&quot;, &quot; Taupe&quot;, &quot;Mauve&quot;, &quot;Vermillion&quot;, &quot;Chartreuse&quot;};
          public bool error;
  
          public Experiment(string Name, int Num, string Col, double Weight)
          {
              NAME = Name;
              NUM = Num;
              COLOR = color;
              WEIGHT = weightt;
          }
  
          public string color
          {
              get { return COLOR; }
              set
              {
                  foreach(string i in colors)
                  {
                      if (value == i) 
                          error = false;
                      break;
                  }
              }
          }
  
          public double weightt
          {
              get { return WEIGHT; }
  
              set { WEIGHT = value; }
  
          }
      }
  }
  </code></pre>