#include "auto.h" cAuto::cAuto(const string merkki) : merkki_(merkki), max_nopeus_(70) { } cAuto::cAuto(const string merkki, const unsigned int max_nopeus) : merkki_(merkki), max_nopeus_(max_nopeus) { } cAuto::cAuto(const cAuto& kopioitava) : merkki_(kopioitava.merkki_), max_nopeus_(kopioitava.max_nopeus_) { } cAuto::~cAuto(void){ } void cAuto::liiku(const unsigned int nopeus) const{ if (nopeus > max_nopeus_) cout << "En kulje noin nopeasti! Olen vain " << merkki_ << ". :(" << endl; else cout << "*" << merkki_ << " mylvii ja liikkuu nopeudella " << nopeus << "km/h!*" << endl; }