title: 2d array pointer not apply to both dimensions
body: <p>I'm new to C++ and I can't seem to wrap my head around accessing a 2d array from another class. This is my attempt so far but I'm confused. This is from what I've tried to gather online, but I don't understand for example, why the getter function is returning a char type, but in the form of a pointer?</p>
  
  <p>Game Header </p>
  
  <pre><code>class Game {
   public:
      char (*getLevel())[28];
   private:
      char level[16][28];
  }
  </code></pre>
  
  <p>Game.cpp</p>
  
  <pre><code>char (*Game::getLevel())[28] {
      return level;
  }
  
  pacman-&gt;moveEntity(getLevel(), pacman-&gt;getXPos(), pacman-&gt;getYPos(), direction);
  </code></pre>
  
  <p>Pacman.cpp</p>
  
  <pre><code>void Pacman::moveEntity(char level, int x, int y, char dir) {
       level[y][x] = ' ';
  }
  </code></pre>
  
  <p>[y] is redlined, and says Expression must have pointer to object type</p>