school/semester_2/programiranje_2/naloga0801/ConstructionMaterial.cpp

7 lines
278 B
C++

#include "ConstructionMaterial.h"
ConstructionMaterial::ConstructionMaterial(std::string item, unsigned int amount): item(item), amount(amount) {}
std::string ConstructionMaterial::toString() {
return "Item: " + item + "\nAmount: " + std::to_string(amount) + "\n";
}