Beispiel #1
0
 public override bool isSatisfiedBy(Product product)
 {
     return product.color==this.color;
 }
Beispiel #2
0
 public override bool isSatisfiedBy(Product product)
 {
     return this.x.isSatisfiedBy(product) && this.y.isSatisfiedBy(product);
 }
Beispiel #3
0
 public override bool isSatisfiedBy(Product product)
 {
     return product.price<this.price;
 }
Beispiel #4
0
 public abstract bool isSatisfiedBy(Product product);