



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




data members: name - name associated with the recipe (e.g. "PlainCheeseCake") instructions - an array of String objects where each entry represents one instruction associated with the recipe. numberOfInstructions - integer representing the number of instructions ingredients - an array of String objects where each entry represents an ingredient numberOfIngredients - integer representing the number of ingredients methods: appropriate constructor get/set methods you understand are necessary toString() method equals method II. Cookbook - represents the collection of recipes
data members: listOfRecipes - an array of Recipe objects numberOfRecipes - an integer representing the number of recipes methods: appropriate constructor get/set methods you understand are necessary addRecipe - adds the recipe by creating a new array that includes the current number of recipes plus the new one to add. You must keep the recipes ordered by recipe name. findRecipe - locates a recipe based on a recipe name. removeRecipe - deletes a recipe from the cookbook. It requires creating a