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