SWADP/Opdracht_4/inc/ElectrischeMotor.cpp

20 lines
375 B
C++
Raw Normal View History

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