SWADP/Opdracht_4/inc/DieselMotor.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
335 B
C++

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