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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now