class Person{
protected:
string firstName;
string lastName;
int id;
public:
Person(string firstName, string lastName, int identification){
this->firstName = firstName;
this->lastName = lastName;
this->id = identification;
}
void printPerson(){
cout<< "Name: "<< lastName << ", "<< firstName <<"\nID: "<< id << "\n";
}
};
class Student : public Person{
private:
vector<int> testScores;
public:
Student(string firstName_, string lastName_, int identification_, vector<int> testScores_):Person(firstName_, lastName_, identification_){
this->testScores = testScores_;
}
chỗ Student(string firstName_, string lastName_, int identification_, vector<int> testScores_):Person(firstName_, lastName_, identification_) sẽ hiểu như thế nào và có cách viết khác thay thế hay không?

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?