summaryrefslogtreecommitdiff
path: root/lib/deposit.cs
blob: 2b4b31d150ef25592e63e1eaf4039e9b73716ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class Deposit : Entry
{
  Quantity quantity;

  public Deposit(Quantity quantity)
  {
    this.quantity = quantity;
  }

  public Quantity apply_to(Quantity quantity)
  {
    return quantity.plus(this.quantity);
  }
}