SWADP/Opdracht_4/inc/ElectrischeMotor.cpp
Shaquille Soekhlal 7723e68186 Opdracht 4 code en design
Co-authored-by: Aryan Lala (19097727) <A.E.Lala@student.hhs.nl>
2023-06-11 16:15:15 +02:00

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;
}