title: How do define get and set for an array data member?
body: <p>I am making a class <code>Customer</code> that has the following data members and properties:</p>
  
  <pre><code>private string customerName;
  private double[] totalPurchasesLastThreeDays; //array of 3 elements that will hold the totals of how much the customer purchased for the past three days i.e. element[0] = 100, element[1] = 50, element[2] = 250
  
  public string CustomerName
  {
  get { return customerName; }
  set { customerName = value; }
  }
  
  public double[] TotalPurchasesLastThreeDays
  {
  ?
  }
  </code></pre>
  
  <p>How do I define the get and set for the array data member?</p>