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