// // Created by Nik on 07/04/2022. // #include "WeighableArticle.h" WeighableArticle::WeighableArticle(std::string name, std::string barcode, double price, double quantity) : Article(name, barcode, price) { this->quantity = quantity; } std::string WeighableArticle::toString() { return name + " " + std::to_string(quantity) + " " + std::to_string(getTotalPrice()) + " E \n"; }