Opdracht 2 3n 3 final

Co-authored-by: Aryan Lala (19097727) <A.E.Lala@student.hhs.nl>
This commit is contained in:
2023-05-04 09:22:06 +02:00
parent d60e22ccc2
commit 83e46713e1
5 changed files with 37 additions and 133 deletions

View File

@ -10,5 +10,5 @@ AnalogeMeter::AnalogeMeter(Snelheid* s):Observer(s){
void AnalogeMeter::update()
{
cout << "Analoog: " << dynamic_cast<Snelheid*>(getSubject())->geef();
cout << "Analoog: " << dynamic_cast<Snelheid*>(getSubject())->geef() << endl;
}

View File

@ -1,4 +1,4 @@
#include "observer.h"
#include "Observer.h"
void Subject::notify ( ){
for ( list<Observer*>::iterator i=L.begin( ); i!=L.end( ); ++i ) (*i)->update( );