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