School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
#include "user.h"
User::User()
{
this->_name = "";
this->_id = 0;
this->_type = "";
}
User::User(std::string name, int id, std::string type)
{
this->_name = name;
this->_id = id;
this->_type = type;
}
std::string User::name()
{
return this->_name;
}
int User::id()
{
return this->_id;
}
std::string User::type()
{
return this->_type;
}
void User::name(std::string name)
{
this->_name = name;
}
void User::id(int id)
{
this->_id = id;
}
void User::type(std::string type)
{
this->_type = type;
}