Question: #include #include #include using namespace std; class Eatery { public: void SetName ( string eateryName ) ; void SetEmployees ( int eateryEmployees ) ; void

#include
#include
#include
using namespace std;
class Eatery {
public:
void SetName(string eateryName);
void SetEmployees(int eateryEmployees);
void Print() const;
private:
string name;
int employees;
};
public:
void SetName(String eateryName){
this.name = eateryName +"'s Delicatessen";
}
public:
void SetEmployees(String eateryEmployees){
this.employees = eateryEmployees;
}
void Eatery::Print() const {
cout << "Eatery: "<< name << endl;
cout << "Total: "<< employees <<" employees" << endl;
}
int main(){
Eatery restaurant;
string inputName;
int inputEmployees;
cin >> inputName;
cin >> inputEmployees;
restaurant.SetName(inputName);
restaurant.SetEmployees(inputEmployees);
restaurant.Print();
return 0;
} I
KEEP GETTING THIS ERROR CODE PLEASE HELP
main.cpp:16:1: error: expected unqualified-id before public
16| public:
|^~~~~~
main.cpp:20:1: error: expected unqualified-id before public
20| public:
|^~~~~~

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!