Find The Output Of The Following Programp Pre Langcpp #71
Find the output of the following program.</p> <pre><code class="language-cpp"> class education { char name[10]; public : disp() { cout<<”Its education system”; } class school:public education { public: void dsip() { cout<<”Its school education system”; } }; void main() { school s; s.disp(); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 OOPs Concept & Features - OOPs MCQ: Polymorphism - Quiz No.2.
Find the output of the following program.
class education { char name[10]; public : disp() { cout<<”Its education system”; } class school:public education { public: void dsip() { cout<<”Its school education system”; } }; void main() { school s; s.disp(); } }
Its school education system
Its education system
Its school education systemIts education system
Its education systemIts school education system