What Is Output Of The Following Programp Pre Langcpp #69

What is output of the following program?</p> <pre><code class="language-cpp"> class student { public : int marks; void disp() { cout<<”its base class” }; class topper:public student { public : void disp() { cout<<”Its derived class”; } } void main() { student s; topper t; s.disp(); t.disp(); } </code></pre>

Online Quiz 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.1.


Similar question(s) are as followings:



Online Quizzes of gs111 OOP Object Oriented Programming Java

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background