Skip to content
Snippets Groups Projects
Commit c1c64104 authored by HSoreide's avatar HSoreide
Browse files

Write first draft of RecipeIngredient class that extends Ingredient class

parent bcf24370
No related branches found
No related tags found
1 merge request!7Create food and recipe classes with tests
package no.ntnu.idatt1002.demo.data.recipes;
public class RecipeIngredient extends Ingredient{
private boolean atHand = false;
public RecipeIngredient(FoodItem ingredient, double amount, MeasuringUnit unit) {
super(ingredient, amount, unit);
}
public boolean isAtHand() {
return atHand;
}
public void setAtHand(boolean atHand) {
this.atHand = atHand;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment