Question: Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print ( ) const; employee() { void private: };

Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print ( )

Which line(1 tru10) has the syntax error? class employee{ public: string name; float wage; void print ( ) const; employee() { void private: }; name = "unknown"; wage = 0; int empID; // Linel // Line2 // Line3 // Line4 // Line5 // Line6 // Line7 // Line8 // Line9 // Line10 // Linell

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The syntax error is on Line6 The line void employee is defining a function named employee in... View full answer

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 Programming Questions!