From 114fb12ed445b0d7472655fc26da052a2a2aa167 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 14 Dec 2022 18:44:50 +0100 Subject: week 6 klaar --- oop2w6/IComponent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'oop2w6/IComponent.h') 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; }; -- cgit v1.2.3