Question: undefined 12.7 Consider the following class definition: 1 class aClass 2- { 3 public: 4 void print() const; 5 void set(int, int); 6 aClass(); 7
undefined
12.7 Consider the following class definition: 1 class aClass 2- { 3 public: 4 void print() const; 5 void set(int, int); 6 aClass(); 7 aClass(int, int); 8 private: 9 int u; 10 11 }; 12 int V; What is wrong with the following class definitions? a. 1 class bclass public aclass 2-{ 3 public: 4 void print(); 5 void set(int, int, int); 6 private: 7 int z; 8 } 9 b. 1 class cClass: public aclass 2. { 3 public: 4 void print(); 5 int sum(); 6 cClass(); 7 cclass(int) 8 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
