Třída reprezentující přísadu (např. na pizzu).
More...
#include <Ingredient.h>
|
| string | name |
| | Název přísady.
|
| double | cost |
| | Cena přísady.
|
Třída reprezentující přísadu (např. na pizzu).
◆ Ingredient() [1/2]
| Ingredient::Ingredient |
( |
| ) |
|
◆ Ingredient() [2/2]
| Ingredient::Ingredient |
( |
string | name, |
|
|
double | cost ) |
Konstruktor s parametry.
- Parameters
-
| name | Název přísady. |
| cost | Cena přísady. |
◆ ~Ingredient()
| Ingredient::~Ingredient |
( |
| ) |
|
◆ getCost()
| double Ingredient::getCost |
( |
| ) |
|
Získá cenu přísady.
- Returns
- Cena přísady.
◆ getName()
| string Ingredient::getName |
( |
| ) |
|
Získá název přísady.
- Returns
- Název přísady.
◆ cost
◆ name
The documentation for this class was generated from the following files: