SWADP/Opdracht_4/main.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

22 lines
523 B
C++

#include "inc/MachineImpl.h"
#include "inc/DieselMotor.h"
#include "inc/ElectrischeMotor.h"
#include "inc/TsensorImpl.h"
#include "inc/UI.h"
int main (){
TsensorImpl* t1 = new TsensorImpl();
TsensorImpl* t2 = new TsensorImpl();
DieselMotor* diesel = new DieselMotor(t1);
ElectrischeMotor* elec = new ElectrischeMotor(t2);
UI* interface1 = new UI(t1);
UI* interface2 = new UI(t2);
MachineImpl* machine = new MachineImpl(diesel, elec);
machine->run();
machine->halt();
return 0;
}