12 lines
306 B
C++
12 lines
306 B
C++
//
|
|
// Created by Nik on 22/04/2022.
|
|
//
|
|
|
|
#include "Racunalnik.h"
|
|
|
|
Racunalnik::Racunalnik(int poraba, int volumen) : poraba(poraba), volumen(volumen) {}
|
|
|
|
std::string Racunalnik::toString() const {
|
|
return "Poraba: " + std::to_string(poraba) + "W Volumen: " + std::to_string(volumen) + " \n";
|
|
}
|