#include &lt;iostream&gt;    using namespace std;    class Rect    &#123;        int x, y;        public:        void set_values &#40;int,int&#41;;        int area &#40;&#41;        &#123;            return &#40;x * y&#41;;        &#125;    &#125;;    void Rect::set_values &#40;int a, int b&#41; &#123;        x = a;        y = b;    &#125;    int main &#40;&#41;    &#123;        Rect recta, rectb;        recta.set_values &#40;5, 6&#41;;        rectb.set_values &#40;7, 6&#41;;        cout &lt;&lt; &quot;recta area: &quot; &lt;&lt; recta.area&#40;&#41;;        cout &lt;&lt; &quot;rectb area: &quot; &lt;&lt; rectb.area&#40;&#41;;        return 0;    &#125;
A. recta area: 30 rectb area: 42
B. recta area: 20 rectb area: 34
C. recta area: 30 rectb area: 21
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Rect    &#123;        int x, y;        public:        void set_values &#40;int,int&#41;;        int area &#40;&#41;        &#123;            return &#40;x * y&#41;;        &#125;    &#125;;    void Rect::set_values &#40;int a, int b&#41; &#123;        x = a;        y = b;    &#125;    int main &#40;&#41;    &#123;        Rect recta, rectb;        recta.set_values &#40;5, 6&#41;;        rectb.set_values &#40;7, 6&#41;;        cout &lt;&lt; &quot;recta area: &quot; &lt;&lt; recta.area&#40;&#41;;        cout &lt;&lt; &quot;rectb area: &quot; &lt;&lt; rectb.area&#40;&#41;;        return 0;    &#125;
A. recta area: 30 rectb area: 42 B. recta area: 20 rectb area: 34 C. recta area: 30 rectb area: 21 D. none of the mentioned
Explanation:We are calculating the area of rectangle by two objects.