retire();
//...
};
class Programmer:
public Employee {
int team;public:
~Programmer() { retire(); }
//...
};
void ret(Employee &re,
Programmer &rp)
{
re.retire();
rp.retire();
}
class Proj_Manager: public Employee
{ /*...*/};
class HR_Assistant: public Employee
{
void fire(Proj_Manager *p)
{
p->retire();
retire();
}
};
// ошибка !!!
// ошибка !!!
// ошибка !!!