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

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation