This repository has been archived on 2022-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
patterns-old/lesson_4/StandardPizza.hpp

30 lines
537 B
C++
Raw Normal View History

2021-11-03 15:35:58 +00:00
/*
* StandardPizza.hpp
*
* Created on: 3 нояб. 2021 г.
* Author: alexander
*/
#pragma once
#include "Pizza.hpp"
#include "PizzaIngredientFactory.hpp"
class StandardPizza: public Pizza
{
public:
PizzaIngredientFactory *ingredientFactory;
StandardPizza(PizzaIngredientFactory *ingredientFactory) : ingredientFactory(ingredientFactory) {}
void prepare() override
{
std::cout << "Preparing " << getName() << std::endl;
}
~StandardPizza()
{
delete ingredientFactory;
}
};