#include &lt;iostream&gt;    using namespace std;    class BaseClass     &#123;        protected:        int i;        public:        BaseClass&#40;int x&#41;         &#123;            i = x;        &#125;        ~BaseClass&#40;&#41;         &#123;        &#125;    &#125;;    class DerivedClass: public BaseClass     &#123;        int j;        public:        DerivedClass&#40;int x, int y&#41;: BaseClass&#40;y&#41;        &#123;            j = x;        &#125;        ~DerivedClass&#40;&#41;         &#123;        &#125;        void show&#40;&#41;         &#123;            cout &lt;&lt; i &lt;&lt; &quot; &quot; &lt;&lt; j &lt;&lt; endl;        &#125;    &#125;;    int main&#40;&#41;    &#123;        DerivedClass ob&#40;3, 4&#41;;        ob.show&#40;&#41;;        return 0;    &#125;
A. 3 4
B. 4 3
C. 4
D. 3
Answer:A
#include &lt;iostream&gt;    using namespace std;    class BaseClass     &#123;        protected:        int i;        public:        BaseClass&#40;int x&#41;         &#123;            i = x;        &#125;        ~BaseClass&#40;&#41;         &#123;        &#125;    &#125;;    class DerivedClass: public BaseClass     &#123;        int j;        public:        DerivedClass&#40;int x, int y&#41;: BaseClass&#40;y&#41;        &#123;            j = x;        &#125;        ~DerivedClass&#40;&#41;         &#123;        &#125;        void show&#40;&#41;         &#123;            cout &lt;&lt; i &lt;&lt; &quot; &quot; &lt;&lt; j &lt;&lt; endl;        &#125;    &#125;;    int main&#40;&#41;    &#123;        DerivedClass ob&#40;3, 4&#41;;        ob.show&#40;&#41;;        return 0;    &#125;
A. 3 4 B. 4 3 C. 4 D. 3
Explanation:In this program, We are passing the values and assigning it to i and j and we are printing it.