Design a console application that will capture and print the ingredients for a baking application. Use an abstract class named Recipes that contains variables to store the ingredients, time to make and the difficulty level. Create a constructor that accepts the ingredients, time to make and difficulty level as parameter, and create get methods for the variables. The Recipes class must implement an iRecipes interface that contains the following: public interface iRecipes { public void PrintRecipes(); } Create a subclass called ProcessRecipe that extends the Recipes class. The ProcessRecipes class must contain a constructor to accept the ingredients, time to make and the difficulty level. Next, write code for PrintRecipes() method, which displays the ingredients, time to make and the difficulty level to create. Finally, write a BakingApplication class to instantiate the ProcessRecipes class.
Design a console application that will capture and print the ingredients for a baking application. Use an abstract class named Recipes that contains variables to store the ingredients, time to make and the difficulty level. Create a constructor that accepts the ingredients, time to make and difficulty level as parameter, and create get methods for the variables.
The Recipes class must implement an iRecipes interface that contains the following:
public interface iRecipes {
public void PrintRecipes();
}
Create a subclass called ProcessRecipe that extends the Recipes class. The ProcessRecipes class must contain a constructor to accept the ingredients, time to make and the difficulty level. Next, write code for PrintRecipes() method, which displays the ingredients, time to make and the difficulty level to create.
Finally, write a BakingApplication class to instantiate the ProcessRecipes class.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 1 images