Chapter 12: Problem 2
Find the syntax errors in the definitions of the following classes. a. class AA { public: void print()const; int sum(); AA(); int AA(int, int); private: int x; int y; }; b. class BB { int one; int two; public: bool equal() const; print(); BB(int, int); } c. class CC { public; void set(int, int); void print()const; CC(); CC(int, int); bool CC(int, int); private: int u; int v; };
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.