-
Notifications
You must be signed in to change notification settings - Fork 0
/
Poulltry.h
50 lines (42 loc) · 1.1 KB
/
Poulltry.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef POULTRY_H
#define POULTRY_H
#include "PoultryType.h"
#include "FoodItem.h"
/**
* @class Poultry
* @brief Represents a type of food item: poultry dish.
*/
class Poultry: public FoodItem {
private:
PoultryType* poultryType; // Pointer to the type of poultry
public:
/**
* @brief Constructor for the Poultry class.
*
* @param type A pointer to the type of poultry for the dish.
*/
Poultry(PoultryType* type);
/**
* @brief Cooks the poultry dish using the specified poultry type.
*/
void cook();
/**
* @brief Get the name of the class.
*
* This function retrieves the name of the class(food item) and returns it as a string.
*
* @return A string containing the name of the class.
*/
string getName();
/**
* @brief Set the type of poultry for the dish.
*
* @param type A pointer to the type of poultry to set.
*/
void setPoultryType(PoultryType* type);
/**
* @brief Destructor for the Poultry class.
*/
virtual ~Poultry();
};
#endif