#include &lt;iostream&gt;    using namespace std;    class class0     &#123;        public:        virtual ~class0&#40;&#41;&#123;&#125;        protected:        char p;        public:        char getChar&#40;&#41;;    &#125;;    class class1 : public class0     &#123;        public:        void printChar&#40;&#41;;    &#125;;    void class1::printChar&#40;&#41;    &#123;        cout  &lt;&lt; &quot;True&quot; &lt;&lt; endl;    &#125;    int main&#40;&#41;     &#123;        class1 c;        c.printChar&#40;&#41;;        return 1;    &#125;
A. True
B. error
C. no output
D. runtime error
Answer:A
#include &lt;iostream&gt;    using namespace std;    class class0     &#123;        public:        virtual ~class0&#40;&#41;&#123;&#125;        protected:        char p;        public:        char getChar&#40;&#41;;    &#125;;    class class1 : public class0     &#123;        public:        void printChar&#40;&#41;;    &#125;;    void class1::printChar&#40;&#41;    &#123;        cout  &lt;&lt; &quot;True&quot; &lt;&lt; endl;    &#125;    int main&#40;&#41;     &#123;        class1 c;        c.printChar&#40;&#41;;        return 1;    &#125;
A. True B. error C. no output D. runtime error
Explanation:In this program, We are passing the values and inheriting it to the other class and printing the result.