Files
School/Anul 1/Semestrul 2/OOP/Labs/MockTest1/Participant.cpp
T
2024-08-31 12:07:21 +03:00

35 lines
449 B
C++

#include "Participant.h"
Participant::Participant(std::string name)
{
this->_name = name;
this->_score = 0;
}
Participant::Participant()
{
this->_name = "";
this->_score = -1;
}
std::string Participant::name()
{
return this->_name;
}
int Participant::score()
{
return this->_score;
}
void Participant::name(std::string name)
{
this->_name = name;
}
void Participant::score(int score)
{
this->_score = score;
}