Find the syntax errors in the following class definition. class syntaxErrors2 //Line 1 { //Line 2 public: //Line 3 bool canGraduate(); //Line 4 void print() const; //Line 5 void syntaxErrors2(int = 0, double = 0); //Line 6 private; //Line 7 int ID; //Line 8 double gpa; //Line 9 };
Find the syntax errors in the following class definition.
class syntaxErrors2 //Line 1
{ //Line 2
public: //Line 3
bool canGraduate(); //Line 4
void print() const; //Line 5
void syntaxErrors2(int = 0,
double = 0); //Line 6
private; //Line 7
int ID; //Line 8
double gpa; //Line 9
};
Trending now
This is a popular solution!
Step by step
Solved in 2 steps