#include &lt;iostream&gt;    using namespace std;    class Base    &#123;        public:        Base &#40; &#41;        &#123;            cout &lt;&lt; &quot;1&quot; &lt;&lt; endl;        &#125;        ~Base &#40; &#41;        &#123;            cout &lt;&lt; &quot;2&quot; &lt;&lt; endl;        &#125;    &#125;;    class Derived : public Base    &#123;        public:        Derived  &#40; &#41;        &#123;            cout &lt;&lt; &quot;3&quot; &lt;&lt; endl;        &#125;        ~Derived &#40; &#41;        &#123;            cout &lt;&lt; &quot;4&quot; &lt;&lt; endl;        &#125;        &#125;;     int main&#40; &#41;    &#123;        Derived x;    &#125;
A. 1234
B. 4321
C. 1423
D. 1342
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Base    &#123;        public:        Base &#40; &#41;        &#123;            cout &lt;&lt; &quot;1&quot; &lt;&lt; endl;        &#125;        ~Base &#40; &#41;        &#123;            cout &lt;&lt; &quot;2&quot; &lt;&lt; endl;        &#125;    &#125;;    class Derived : public Base    &#123;        public:        Derived  &#40; &#41;        &#123;            cout &lt;&lt; &quot;3&quot; &lt;&lt; endl;        &#125;        ~Derived &#40; &#41;        &#123;            cout &lt;&lt; &quot;4&quot; &lt;&lt; endl;        &#125;        &#125;;     int main&#40; &#41;    &#123;        Derived x;    &#125;
A. 1234 B. 4321 C. 1423 D. 1342
Explanation:In this program, We are printing the order of execution of constructor and destructor in the class.