Form::Form(std::string const & p_name, int pn_gradeToSign, int pn_gradeToExec) : m_name(p_name), mn_gradeToSign(pn_gradeToSign), mn_gradeToExec(pn_gradeToExec), mb_isSigned(false) { checkGrade(pn_gradeToSign); checkGrade(pn_gradeToExec); }
Bureaucrat::Bureaucrat( Bureaucrat const & cpy) : name(cpy.getName()), grade(cpy.getGrade()) { checkGrade(); }
Bureaucrat& Bureaucrat::operator=(Bureaucrat const & cpy) { grade = cpy.getGrade(); checkGrade(); return *this; }
Bureaucrat::Bureaucrat( const std::string & name, int grade ) : name(name), grade(grade) { checkGrade(); }
void Bureaucrat::demote( void ) { grade++; checkGrade(); }
void Bureaucrat::promote( void ) { grade--; checkGrade(); }