-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChipSauce.h
44 lines (37 loc) · 965 Bytes
/
ChipSauce.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
#ifndef CHIPSAUCE_H
#define CHIPSAUCE_H
#include "Chips.h"
/**
* @class ChipSauce
* @brief Represents a specific type of sauce intended for chips.
*/
class ChipSauce : public Chips {
protected:
Chips* chips; // Pointer to Chips
public:
/**
* @brief Constructor for the ChipSauce class.
*
* @param chips A pointer to the Chips associated with the sauce.
*/
ChipSauce(Chips* chips);
/**
* @brief Virtual destructor for the ChipSauce class.
*/
virtual ~ChipSauce();
/**
* @brief Cooks the chip sauce (pure virtual).
*
* This function, when implemented in derived classes, is responsible for cooking the chip sauce.
*/
virtual void cook() = 0;
/**
* @brief Get the price of the chip sauce.
*
* This function retrieves the price of the chip sauce as a double.
*
* @return the price of the chip sauce
*/
virtual double getPrice() = 0;
};
#endif