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 ( ) 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
The syntax error is on Line6 The line void employee is defining a function named employee in... View full answer
Get step-by-step solutions from verified subject matter experts
