Write a program to make the class of student using which is the derived class of person class using polymorphism

#include<iostream>
#include<conio.h>
using namespace std;
class person
{
char name[20];
int age;
public:
void set()
{
cout<<“ENter name: “;
cin>>name;
cout<<“Enter age: “;
cin>>age;
}
void get()
{
cout<<“Name is: “<<name<<endl;
cout<<“Age is: “<<age<<endl;
}
};
class student:public person
{
int roll_no;
public:
void set() // over riding a set of function of base class
{
person::set();
cout<<“Enter roll no:”;
cin>>roll_no;
}
void get() // over riding a get function of base class
{
person::get();
cout<<“ROll no is: “<<roll_no<<endl;
}
};
int main()
{
person p;
student s;
/* this is poly morphism that we are using the same set funcion of main
class for person object and same named function that is over rided
using for student object*/
cout<<“Enter person data: \n”;
p.set();
cout<<“Entre student data: \n”;
s.set();
cout<<“Person data is: \n”;
p.get();
cout<<“Student data is: \n”;
s.get();
getch();
return 0;
}