aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Circuit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'oop2w6/Circuit.cpp')
-rw-r--r--oop2w6/Circuit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/oop2w6/Circuit.cpp b/oop2w6/Circuit.cpp
new file mode 100644
index 0000000..3df84c8
--- /dev/null
+++ b/oop2w6/Circuit.cpp
@@ -0,0 +1,6 @@
+#include "Circuit.h"
+
+void Circuit::add(IComponent* pComponent) {
+ components[size++] = pComponent;
+}
+