/** Class for photographs that can be sold */
public class Photograph implements Sellable {
private String description; // description of this photo
private double price; // the price we are setting
private boolean color; // true if photo is in color
public Photograph(String description, int price, boolean color) { // constructor
this.description = description;
this.price = price;
this.color = color;
}
public String getDescription() {
return description;
}
public int getPrice() {
return price;
}
public int getLowestPrice() {
return price/2;
}
public boolean isColored() {
return color;
}
}