SWADP/Opdracht_2/DigitaleMeter.cpp

11 lines
246 B
C++
Raw Permalink Normal View History

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