Pizzerie
Toggle main menu visibility
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>
9
using namespace
std;
10
15
class
IMenuItem
{
16
public
:
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
IMenuItem
Čistě virtuální třída (rozhraní) pro všechny položky v menu.
Definition
IMenuItem.h:15
IMenuItem::~IMenuItem
virtual ~IMenuItem()=default
Virtuální destruktor pro správné mazání odvozených tříd.
IMenuItem::printInfo
virtual string printInfo()=0
Získá formátované informace o položce.
IMenuItem::getName
virtual string getName() const =0
Získá název položky.
IMenuItem::getPrice
virtual double getPrice() const =0
Získá cenu položky.
IMenuItem.h
Generated by
1.17.0