public void VisitBus(Bus b) => _collector.AppendLine(b.Name);
示例#2
0
 public void VisitBus(Bus b)
 {
     _totalPrice += b.DiscountedPrice();
     _amountOfVisitedObjects++;
 }