title: How to reference objects in a 2 dimensional array?
body: <p>I read that you can declare an aray of objects by this line</p>
  
  <pre><code>Enemy * d = new Enemy[2];
  </code></pre>
  
  <p>but when i tried to make a 2 dimensional array, there was an error where this cant be initialized. I also tried this</p>
  
  <pre><code>Enemy *enemies[6][2];
  </code></pre>
  
  <p>but i am not sure how to reference to each object in that array and and how to pass that reference to a function.</p>