Created
April 4, 2016 17:41
-
-
Save Redrield/a67231c2c36d519212cc4fa961098c67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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