Pizzerie
Loading...
Searching...
No Matches
Ingredient Class Reference

Třída reprezentující přísadu (např. na pizzu). More...

#include <Ingredient.h>

Collaboration diagram for Ingredient:
Collaboration graph

Public Member Functions

 Ingredient ()
 Výchozí konstruktor.
 Ingredient (string name, double cost)
 Konstruktor s parametry.
 ~Ingredient ()
 Destruktor.
string getName ()
 Získá název přísady.
double getCost ()
 Získá cenu přísady.

Private Attributes

string name
 Název přísady.
double cost
 Cena přísady.

Detailed Description

Třída reprezentující přísadu (např. na pizzu).

Constructor & Destructor Documentation

◆ Ingredient() [1/2]

Ingredient::Ingredient ( )

Výchozí konstruktor.

◆ Ingredient() [2/2]

Ingredient::Ingredient ( string name,
double cost )

Konstruktor s parametry.

Parameters
nameNázev přísady.
costCena přísady.

◆ ~Ingredient()

Ingredient::~Ingredient ( )

Destruktor.

Member Function Documentation

◆ 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.

Field Documentation

◆ cost

double Ingredient::cost
private

Cena přísady.

◆ name

string Ingredient::name
private

Název přísady.


The documentation for this class was generated from the following files: