Write a program to make the class of a doctor which is the derived class of employee using inheritence

#include<iostream>
#include<string.h>
using namespace std;
class Employee
{
protected:
string name;
long int age,id;
};
class doctor:private Employee
{
public:
string drdesgnation,drgender;
void set()
{
cout<<“Enter dr name(char)”<<endl;
cin>>name;
cout<<“Enter dr id(int)”<<endl;
cin>>id;
cout<<“Enter dr age(int)”<<endl;
cin>>age;
cout<<“Enter dr gender(char)”<<endl;
cin>>drgender;
cout<<“Enter dr desgnation(char)”<<endl;
cin>>drdesgnation;
}
void display()
{
cout<<“Dr name is “<<name<<endl;
cout<<“Dr id is “<<id<<endl;
cout<<“Dr age is “<<age<<endl;
cout<<“Dr gender is “<<drgender<<endl;
cout<<“Dr desgnation is “<<drdesgnation<<endl;
}
};
int main()
{
doctor d1,d2,d3;
cout<<“Enter 1st record: \n”;
d1.set();
cout<<“Enter 2nd record: \n”;
d2.set();
cout<<“Enter 3rd record: \n”;
d3.set();
cout<<“\n1st record \n”;
d1.display();
cout<<“\n2nd record \n”;
d2.display();
cout<<“\n3rd record \n”;
d3.display();
system(“pause”);
}