20 lines
375 B
C++
20 lines
375 B
C++
|
#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;
|
||
|
}
|