Q:

Which feature of OOP is indicated by the following code?

0

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;  }   };

  1. Inheritance
  2. Polymorphism
  3. Inheritance and polymorphism
  4. Encapsulation and Inheritance

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).Encapsulation and Inheritance

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OOPS CONCEPT AND FEATURES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which feature may be violated if we don’t use cl... >>
<< Which among the following doesn’t come under OOP...