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? a. void dClass::setXY (int a, int b) {x = bClass. setX (a); b = y; }b. void dClass::setXY (int a, int b) {x = bClass::setX (a); y = bClass::setY (b); }c. void dClass::setXY (int a, int b) {x = a; y = b; }d. void dClass::setXY (int a, int b) {bClass::setX (a); y = b; }
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “class bClass{public:void setX (int a); //Postcondition: x = a; void print () const; private:int x; }; class dClass: public ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » 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; };