Chapter 10: Problem 2
Find the syntax errors in the following class definition: class mystery //Line 1 { //Line 2 public: //Line 3 void print() const; //Line 4 void setNum(double, double); //Line 5 int power(); //Line 6 double mystery(); //Line 7 double mystery(double, double); //Line 8 private: //Line 9 double x; //Line 10 double y; //Line 11 };
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.