I have a person class:
class person {
protected:
string fname, lname, gender bdate;
public:
person();
// getters and setters
};
and a student class:
class student: public person {
private:
string major, grade;
public:
student();
// getters and setters
}
}
I'm not sure how to make the implementation file. Should it be something like:
student::student() : person(), major( new_major ), grade( new_grade ) {}
I've read a book and checked online but I never get to see a fully used derived class to see what everything looks like, including the declaration. Any assistance would be greatly appreciated.