SWADP/Opdracht_4/inc/DieselMotor.cpp

20 lines
335 B
C++
Raw Permalink Normal View History

#include "DieselMotor.h"
#include "Tsensor.h"
#include <iostream>
DieselMotor::DieselMotor(Tsensor* t): t1(t){
}
Tsensor* DieselMotor::tsensor(){
return t1;
}
void DieselMotor::start(){
std::cout <<"Diesel motor has started"<<std::endl;
}
void DieselMotor::stop(){
std::cout <<"Diesel motor has stopped"<<std::endl;
}