SWADP/Opdracht_4/inc/UI.cpp

11 lines
218 B
C++
Raw Normal View History

#include "UI.h"
#include "TsensorImpl.h"
#include <iostream>
using namespace std;
UI::UI(TsensorImpl* t) : Observer(t){}
void UI::update() {cout << dynamic_cast<TsensorImpl*>(getSubject())->temperature() << endl;}