Пример #1
0
// DESC: will charge patient for use of x-ray machine
// PRE: patient must have a money member variable
// POST: cost_per_use will be subtracted from patient.money, returns
//       nothing
void x_rayer::charge_patient(patient & user)
{
  user.pay_out(m_cost);
  return;
}
Пример #2
0
void x_rayer::charge_patient(patient & p) const
{
  p.pay_out(m_cost_per_use);
  return;
}
Пример #3
0
void organ_donor::charge_patient(patient & user)
{
  user.pay_out(m_cost);
  return;
}