Pizzerie
Toggle main menu visibility
Loading...
Searching...
No Matches
Ingredient.h
Go to the documentation of this file.
1
5
6
#ifndef PROOP_INGREDIENT_H
7
#define PROOP_INGREDIENT_H
8
#include <string>
9
using namespace
std;
10
15
class
Ingredient
{
16
private
:
17
string
name
;
18
double
cost
;
19
20
public
:
24
Ingredient
();
25
31
Ingredient
(
string
name
,
double
cost
);
32
36
~Ingredient
();
37
42
string
getName
();
43
48
double
getCost
();
49
};
50
51
#endif
//PROOP_INGREDIENT_H
Ingredient::name
string name
Název přísady.
Definition
Ingredient.h:17
Ingredient::Ingredient
Ingredient()
Výchozí konstruktor.
Definition
Ingredient.cpp:7
Ingredient::cost
double cost
Cena přísady.
Definition
Ingredient.h:18
Ingredient::~Ingredient
~Ingredient()
Destruktor.
Definition
Ingredient.cpp:15
Ingredient::getName
string getName()
Získá název přísady.
Definition
Ingredient.cpp:18
Ingredient::getCost
double getCost()
Získá cenu přísady.
Definition
Ingredient.cpp:22
Ingredient.h
Generated by
1.17.0