Test::Test(Test &obj) : Trial(obj.GetName(), obj.GetSubject()) { this->maxScore = obj.GetMaxScore(); this->score = obj.GetScore(); this->minScore = obj.GetMinScore(); }
void PrintPassed(Trial *obj) { Test *work = dynamic_cast<Test*>(obj); if (work->GetScore() > work->GetMinScore()) { work->Print(); } }
void PrintGreater(Trial *obj) { Test *work = dynamic_cast<Test*>(obj); if (work->GetScore() > user) { work->Print(); } }