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/Dough.hpp

39 lines
501 B
C++
Raw Permalink Normal View History

2021-11-03 15:35:58 +00:00
/*
* Dough.hpp
*
* Created on: 3 нояб. 2021 г.
* Author: alexander
*/
#pragma once
#include <string>
class Dough
{
public:
virtual std::string toString() const = 0;
virtual ~Dough() {}
};
class ThinCrustDough: public Dough
{
public:
std::string toString() const
{
return "Thin Crust Dough";
}
};
class ThickCrustDough: public Dough
{
public:
std::string toString() const
{
return "ThickCrust style extra thick crust dough";
}
};