aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/IComponent.h
diff options
context:
space:
mode:
Diffstat (limited to 'oop2w6/IComponent.h')
-rw-r--r--oop2w6/IComponent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/oop2w6/IComponent.h b/oop2w6/IComponent.h
index 9ec31ca..d48ad85 100644
--- a/oop2w6/IComponent.h
+++ b/oop2w6/IComponent.h
@@ -1,9 +1,12 @@
#pragma once
+#include "Visitor.h"
+
class IComponent {
public:
IComponent() {}
virtual ~IComponent() {}
virtual double getValue() = 0;
+ virtual void accept(Visitor&) = 0;
};