c++ array of type class : <p>I have just started learning c++. I have a question in an assignment that reads: Consider the following class declaration with a main() function. There are two errors in the main() function. Name them and explain how to fix them.</p>

<pre><code>//Question Three Start
#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

class Restaurant
{
public:
    Restaurant();
    int getTables();
    int getTempStaff();
    int getPermStaff();
    string getShifts();
private:
    string Menu;
    int Tables;
    int TempStaff;
    int PermStaff;
    string Shifts[3];
};

int main()
{
    Restaurant mimmos;
    //.........(additional code)
    string menu = mimmos.Menu;
    //.........(additional code)
    //get information about shift 3
    cout &lt;&lt; "Shift info:" &lt;&lt; mimmos[2].getShifts() &lt;&lt; endl;
    return 0;
}
</code></pre>

<p>I know that the first issue is that the member variable Menu is private, but i am not sure how to fix the issue with the mimmos[2].getShifts() and how to use an accessor/mutator function. Any help will be greatly appreciated.</p>
