package proxy;
public class Product implements ProductI {
private int price;
private boolean delivery;
public Product
(int price,
String name,
boolean delivery
) { super();
this.price = price;
this.name = name;
this.delivery = delivery;
}
public boolean isDelivery() {
return delivery;
}
public void setDelivery(boolean delivery) {
this.delivery = delivery;
}
return name;
}
public void setName
(String name
) { this.name = name;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
return getName() + ", $" + getPrice();
}
}