no no, setters are fine. i meant like this->_pid = otherProcess.getPID();