16 lines
376 B
C++
16 lines
376 B
C++
//
|
|
// Created by Franc on 04.05.2026.
|
|
//
|
|
|
|
#include "Drink.h"
|
|
|
|
|
|
Drink::Drink(string n, double b, int v, bool c): MenuItem(n, b) {
|
|
this->volume = v;
|
|
this->isCarbonated = c;
|
|
}
|
|
Drink::~Drink(){}
|
|
string Drink::printInfo() {
|
|
return MenuItem::printInfo() + ", with volume of: " + to_string(volume) + ", and carbonated: " + (
|
|
isCarbonated ? "yes" : "no");
|
|
} |