SWADP/Opdracht_2/AnalogeMeter.cpp
Hello_User 83e46713e1 Opdracht 2 3n 3 final
Co-authored-by: Aryan Lala (19097727) <A.E.Lala@student.hhs.nl>
2023-05-04 09:22:06 +02:00

14 lines
258 B
C++

#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;
}