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