9 lines
441 B
C++

#include "Telefon.h"
Telefon::Telefon(int size, int battery, int camera) : size(size), battery(battery), camera(camera) {}
std::string Telefon::toString() const {
//return "Diagonal size:" + std::to_string(size) + "Inc Battery size:" + std::to_string(battery) + "mHa Camera sensor:" + std::to_string(camera) + "MP \n";
return std::to_string(size) + " " + std::to_string(battery) + " " + std::to_string(camera) + " \n";
}