#include &lt;iostream&gt;    using namespace std;    class BaseClass     &#123;        int x;        public:        void setx&#40;int n&#41;         &#123;            x = n;        &#125;        void showx&#40;&#41;         &#123;            cout &lt;&lt; x ;        &#125;    &#125;;    class DerivedClass : private BaseClass    &#123;        int y;        public:        void setxy&#40;int n, int m&#41;        &#123;            setx&#40;n&#41;;                  y = m;        &#125;        void showxy&#40;&#41;         &#123;            showx&#40;&#41;;                   cout &lt;&lt; y &lt;&lt; '\n';        &#125;    &#125;;    int main&#40;&#41;    &#123;        DerivedClass ob;        ob.setxy&#40;10, 20&#41;;        ob.showxy&#40;&#41;;        return 0;    &#125;
A. 10
B. 20
C. 1020
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class BaseClass     &#123;        int x;        public:        void setx&#40;int n&#41;         &#123;            x = n;        &#125;        void showx&#40;&#41;         &#123;            cout &lt;&lt; x ;        &#125;    &#125;;    class DerivedClass : private BaseClass    &#123;        int y;        public:        void setxy&#40;int n, int m&#41;        &#123;            setx&#40;n&#41;;                  y = m;        &#125;        void showxy&#40;&#41;         &#123;            showx&#40;&#41;;                   cout &lt;&lt; y &lt;&lt; '\n';        &#125;    &#125;;    int main&#40;&#41;    &#123;        DerivedClass ob;        ob.setxy&#40;10, 20&#41;;        ob.showxy&#40;&#41;;        return 0;    &#125;
A. 10 B. 20 C. 1020 D. None of the mentioned