Here How can I inherit string a, string b, string c, int d, string e, string f into my Student class and add int r, string fs with them?

Here How can I inherit string a, string b, string c, int d, string e, string f into my Teacher class and add string subject with them?

```
class Person{
    public:
        string name;
        string level;
        string group;
        int age;
        string phone;
        string gender;

        Person(string a, string b, string c, int d, string e, string f){
            name = a;
            level = b;
            group = c;
            age = d;
            phone = e;
            gender = f;

            cout << "Student name: " << name << endl;
            cout << "Study Position: " << level << endl;
            cout << "Group: " << group << endl;
            cout << "Age: " << age << endl;
            cout << "Phone: " << phone << endl;
            cout << "Gender: " << gender << endl << endl;
        }
};

class Student: public Person{
    public:
        int roll;
        string favoriteSubject;
        Student(int r, string fs){
            roll = r;
            favoriteSubject = fs;
        }
};

class Teacher: public Person{
    public:
        string subject;
        Teacher(string s){
            subject = s;
        }
};

```