Find the syntax errors in the following class definition. class syntaxErrors3() //Line 1{ //Line 2public: //Line 3void setXY(int, int); //Line 4isEqual(int a, int b); //Line 5int multiply(); //Line 6void print() const; //Line 7syntaxErrors3(int, int = 0); //Line 8private: //Line 9int x; //Line 10int y; //Line 11}; //Line 12
Find the syntax errors in the following class definition.
class syntaxErrors3() //Line 1
{ //Line 2
public: //Line 3
void setXY(int, int); //Line 4
isEqual(int a, int b); //Line 5
int multiply(); //Line 6
void print() const; //Line 7
syntaxErrors3(int, int = 0); //Line 8
private: //Line 9
int x; //Line 10
int y; //Line 11
}; //Line 12
Trending now
This is a popular solution!
Step by step
Solved in 2 steps