14 lines
250 B
C++
14 lines
250 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();
|
||
|
}
|