Files
2026-05-04 14:52:32 +02:00

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");
}