Opdracht 2 3n 3 final
Co-authored-by: Aryan Lala (19097727) <A.E.Lala@student.hhs.nl>
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
@@ -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( );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user