Find the syntax errors in the following class definition. class syntaxErrors1 //Line 1{ //Line 2public: //Line 3syntaxErrors(); //Line 4void setData(double, double); //Line 5int mult(); //Line 6private: //Line 7int one; //Line 8double two; //Line 9}
Find the syntax errors in the following class definition.
class syntaxErrors1 //Line 1
{ //Line 2
public: //Line 3
syntaxErrors(); //Line 4
void setData(double, double); //Line 5
int mult(); //Line 6
private: //Line 7
int one; //Line 8
double two; //Line 9
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images