Consider the following class definitions:class bClass{publi…
Consider the following class definitions:class bClass{public: void setX(int a); //Postcondition: x = a; void print() const;private: int x;};class dClass: public bClass{public: void setXY(int a, int b); //Postcondition: x = a; y = b; void print() const;private: int y;};Which of the following correctly sets the values of x and y?
Read Details