I didn't tested the whole thing, but you declare every constructor and method twice. Remove the ; in the definitions and add personType with the scope resolution operator or the compiler will not be able to refer to the constructors of the class.
E.g.
1 2 3 4 5 6 7
personType();
{
name = " ";
sex = 'M';
age = -1;
}
becomes
1 2 3 4 5 6 7
personType::personType();
{
name = " ";
sex = 'M';
age = -1;
}
Btw, it's a convention to write the class name with both capital letters, PersonType instead of personType, but use what you are comfortable with.