aboutsummaryrefslogtreecommitdiff
path: root/Observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Observer.h')
-rw-r--r--Observer.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/Observer.h b/Observer.h
index 580d539..20ca887 100644
--- a/Observer.h
+++ b/Observer.h
@@ -2,11 +2,8 @@
#include <vector>
class Observer {
-private:
-
public:
- virtual void update();
-
+ virtual void update() = 0;
};
class Subject {
@@ -18,11 +15,6 @@ public:
virtual void detach(Observer*);
virtual int size();
- // TODO possibly add foo input as update value?
virtual void notify();
- // virtual void notify() {
- // for (int i = 0; i < observers.size(); i++)
- // observers.at(i)->update();
- // }
};