#include <iostream>
#include <string>
#include "staff.h"
using namespace std;

Staff::Staff(const string &name="", int yearOfBirth=0, const string &room="", double salary=0.0)
  : Person(name, yearOfBirth), room_(room), salary_(salary) {
  // leerer Rumpf
}

void Staff::setRoom(const string &room) {
  room_ = room;
}

string Staff::getRoom() const {
  return room_;
}

void Staff::setSalary(double salary) {
  salary_ = salary;
}

double Staff::getSalary() const {
  return salary_;
}

void Staff::print(ostream &os) const {
  Person::print(os);
  os << " " << getRoom() 
     << " " << getSalary();
} 


