-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipeWithPostInstructions.h
34 lines (22 loc) · 988 Bytes
/
recipeWithPostInstructions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Header file for recipeWithPostInstructions.cpp
// Description: This class is a subclass of Recipe.
// It adds a postInstructions member variable to the Recipe class.
#ifndef RECIPEWITHPOSTINSTRUCTIONS_H
#define RECIPEWITHPOSTINSTRUCTIONS_H
#include "recipe.h"
class RecipeWithPostInstructions : public Recipe
{
public:
RecipeWithPostInstructions();
RecipeWithPostInstructions(string name);
RecipeWithPostInstructions(string name, vector<string> ingredients);
RecipeWithPostInstructions(string name, vector<string> ingredients, vector<string> instructions);
RecipeWithPostInstructions(string name, vector<string> ingredients, vector<string> instructions, vector<string> postInstructions);
void setPostInstructions(vector<string> postInstructions);
vector<string> getPostInstructions();
void addPostInstruction(string postInstruction);
void printRecipe() const override;
private:
vector<string> postInstructions;
};
#endif