Pizzerie
Loading...
Searching...
No Matches
IMenuItem.h
Go to the documentation of this file.
1
5
6#ifndef PROOP_IMENUITEM_H
7#define PROOP_IMENUITEM_H
8#include <string>
9using namespace std;
10
15class IMenuItem {
16public:
20 virtual ~IMenuItem() = default;
21
26 virtual double getPrice() const = 0;
27
32 virtual string getName() const = 0;
33
38 virtual string printInfo() = 0;
39};
40
41#endif //PROOP_IMENUITEM_H
Čistě virtuální třída (rozhraní) pro všechny položky v menu.
Definition IMenuItem.h:15
virtual ~IMenuItem()=default
Virtuální destruktor pro správné mazání odvozených tříd.
virtual string printInfo()=0
Získá formátované informace o položce.
virtual string getName() const =0
Získá název položky.
virtual double getPrice() const =0
Získá cenu položky.