First_Commit
This commit is contained in:
28
include/SideDish.hpp
Normal file
28
include/SideDish.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Created by User on 2024/10/29.
|
||||
//
|
||||
|
||||
#ifndef OOP_SIDEDISH_HPP
|
||||
#define OOP_SIDEDISH_HPP
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include "Food.hpp"
|
||||
#include "Ingredients.hpp"
|
||||
|
||||
enum class SideDishType {
|
||||
BIG = 0,
|
||||
SMALL = 1
|
||||
};
|
||||
|
||||
class SideDish final : public Food {
|
||||
private:
|
||||
SideDishType type = SideDishType::SMALL;
|
||||
public:
|
||||
SideDish(Production id);
|
||||
void MakeFood() override;
|
||||
void MakeLarger();
|
||||
SideDishType GetType();
|
||||
};
|
||||
|
||||
#endif // OOP_SIDEDISH_HPP
|
||||
Reference in New Issue
Block a user