#include&lt;iostream&gt;    using namespace std;    class X     &#123;        int m;        public:        X&#40;&#41; : m&#40;10&#41;        &#123;                                                               &#125;        X&#40;int mm&#41;: m&#40;mm&#41;        &#123;        &#125;        int getm&#40;&#41;        &#123;            return m;        &#125;    &#125;;    class Y : public X     &#123;        int n;        public:        Y&#40;int nn&#41; : n&#40;nn&#41; &#123;&#125;                                                        int getn&#40;&#41; &#123; return n; &#125;    &#125;;    int main&#40;&#41;    &#123;        Y yobj&#40; 100 &#41;;        cout &lt;&lt; yobj.getm&#40;&#41; &lt;&lt; &quot; &quot; &lt;&lt; yobj.getn&#40;&#41; &lt;&lt; endl;    &#125;
A. 10 100
B. 100 10
C. 10 10
D. 100 100
Answer:A
#include&lt;iostream&gt;    using namespace std;    class X     &#123;        int m;        public:        X&#40;&#41; : m&#40;10&#41;        &#123;                                                               &#125;        X&#40;int mm&#41;: m&#40;mm&#41;        &#123;        &#125;        int getm&#40;&#41;        &#123;            return m;        &#125;    &#125;;    class Y : public X     &#123;        int n;        public:        Y&#40;int nn&#41; : n&#40;nn&#41; &#123;&#125;                                                        int getn&#40;&#41; &#123; return n; &#125;    &#125;;    int main&#40;&#41;    &#123;        Y yobj&#40; 100 &#41;;        cout &lt;&lt; yobj.getm&#40;&#41; &lt;&lt; &quot; &quot; &lt;&lt; yobj.getn&#40;&#41; &lt;&lt; endl;    &#125;
A. 10 100 B. 100 10 C. 10 10 D. 100 100
Explanation:In this program, We are passing the value and getting the result by derived class.