Example #1
0
 protected override bool isValid(Rent rent)
 {
     return(false);
 }
Example #2
0
 protected override void apply(Rent rent)
 {
     count--;
 }
Example #3
0
 protected override void apply(Rent rent)
 {
 }
Example #4
0
 protected override bool isValid(Rent rent)
 {
     return(count > 0);
 }
Example #5
0
 protected override void apply(Rent rent)
 {
     remaining -= rent.Price;
 }
Example #6
0
 protected override bool isValid(Rent rent)
 {
     return(remaining > rent.Price);
 }
Example #7
0
 protected abstract void apply(Rent rent);
Example #8
0
 protected abstract bool isValid(Rent rent);