12 lines
359 B
C++

//
// Created by Nik on 11/04/2022.
//
#include "Lokomotiva.h"
Lokomotiva::Lokomotiva(double dolzina, double sirina, double moc) : Prikljucek(dolzina, sirina), moc(moc){}
std::string Lokomotiva::toString() const {
return "dolzina: " + std::to_string(dolzina) + " sirina: " + std::to_string(sirina) + " Moc: " + std::to_string(moc) + "\n";
}