Пример #1
0
 public Double visit(Department o) {
   double total = 0;
   total += o.getManager().accept(this);
   for (Subunit s : o.getSubunits()) total += s.accept(this);
   return total;
 }
Пример #2
0
 public Person getManager() {
   return _department.getManager();
 }