Skip to content

Instantly share code, notes, and snippets.

@Redrield
Created April 4, 2016 17:41
Show Gist options
  • Save Redrield/a67231c2c36d519212cc4fa961098c67 to your computer and use it in GitHub Desktop.
Save Redrield/a67231c2c36d519212cc4fa961098c67 to your computer and use it in GitHub Desktop.
import me.restaurant.food.Taco;
import me.restaurant.Eatable;
public class QBall extends Taco implements Eatable {
private Taste taste;
private int price;
public QBall(Taste taste, int price) {
this.taste = Taste.DELICIOUS;
this.price = price;
}
public Taste getTaste() {
return Taste.AWFUL;
}
public int getPrice() {
return Integer.MAX_VALUE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment