aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Resistor.h
diff options
context:
space:
mode:
Diffstat (limited to 'oop2w6/Resistor.h')
-rw-r--r--oop2w6/Resistor.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/oop2w6/Resistor.h b/oop2w6/Resistor.h
new file mode 100644
index 0000000..abeea40
--- /dev/null
+++ b/oop2w6/Resistor.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "IComponent.h"
+
+class Resistor : public IComponent {
+private:
+ double resistance;
+ double tolerance;
+
+public:
+ Resistor(double value, double tolerance);
+ virtual double getValue();
+ virtual double getTolerance();
+ virtual void accept(Visitor&);
+};
+