SWADP/Opdracht_2/AnalogeMeter.cpp

14 lines
258 B
C++
Raw Normal View History

2023-04-28 11:36:57 +00:00
#include "AnalogeMeter.h"
#include "Snelheid.h"
#include <iostream>
using namespace std;
AnalogeMeter::AnalogeMeter(Snelheid* s):Observer(s){
}
void AnalogeMeter::update()
{
cout << "Analoog: " << dynamic_cast<Snelheid*>(getSubject())->geef() << endl;
2023-04-28 11:36:57 +00:00
}