title: Assigning values to an array from an initializer list
body: <p>I have an array declared <code>private</code> in my header file. When I try to put values into it from <code>main</code>, i get errors saying it is private and assigning values to an array from an initializer list.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;cstdlib&gt;
  
  using namespace std;
  
  int main(){
  ArraySet&lt;string&gt; bag;
  bag.items = { "a", "b", "c"};
  
  return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>items is defined in my header as :</p>
  
  <pre><code>template &lt;typename ItemType&gt;
  class ArraySet : public SetInterface&lt;ItemType&gt;{
  private:
  ItemType items[CAPACITY];
  static const int CAPACITY = 6;
  </code></pre>
  
  <p>Is this the incorrect way to do this? I am new to templates. Thank you!</p>