28 lines
363 B
C++
28 lines
363 B
C++
/*
|
||
* Pepperoni.hpp
|
||
*
|
||
* Created on: 3 нояб. 2021 г.
|
||
* Author: alexander
|
||
*/
|
||
|
||
#pragma once
|
||
|
||
#include <string>
|
||
|
||
class Pepperoni {
|
||
public:
|
||
virtual std::string toString() const = 0;
|
||
|
||
virtual ~Pepperoni() {}
|
||
};
|
||
|
||
class SlicedPepperoni: public Pepperoni
|
||
{
|
||
public:
|
||
|
||
std::string toString() const
|
||
{
|
||
return "Sliced Pepperoni";
|
||
}
|
||
};
|