Пример #1
0
 public Rent(Vehicle v, Customer c) {
   this.v = v;
   this.c = c;
   rentCost = v.getPrice();
 }
Пример #2
0
 public void setRentCost(double rentCost) {
   this.rentCost = v.getPrice() + rentCost;
 }