set &get method

how i can do validation on this code
help please
#include"person.h"
#include<string.h>
#include<iostream>
using namespace std;
void person::setid(int id)
{
this->id = id;
}
void person::setpassword(string password)
{
this->password = password;
}
void person::setname(string name)
{

}
void person::setphone(string phone)
{
this->phone = phone;
}
void person::setmoney(int money)
{
this->money = money;
}

int person::getid()
{
return id;
}
string person::getpassword()
{
return password;
}
string person::getname()
{
return name;
}
string person::getphone()
{
return phone;
}
int person::getmoney()
{
return money;
}
Define "validation". And also:
http://www.cplusplus.com/articles/jEywvCM9/
Topic archived. No new replies allowed.