Which Feature Of Oop Is Indicated By The Following Codep Pre #51
Which feature of OOP is indicated by the following code?</p> <pre><code class="language-cpp"> class student{ int marks; }; class topper:public student{ int age; topper(int age){ this.age=age; } };</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: Features - Quiz No.1.
Which feature of OOP is indicated by the following code?
class student{ int marks; }; class topper:public student{ int age; topper(int age){ this.age=age; } };
Inheritance
Polymorphism
Inheritance and polymorphism
Encapsulation and Inheritance