The class declarations should indeed be in the header files; but the implementations ought to be in a separate source file. so, given your code, you would have this part in the header:
`
class personType
{
public:
personType();
void print();
string firstname;
string lastname;
};
but this part would be in a source file:
personType::personType(){}
just like with the print()
method, which you would need to include in your solution/project.