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