aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Capacitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'oop2w6/Capacitor.h')
-rw-r--r--oop2w6/Capacitor.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/oop2w6/Capacitor.h b/oop2w6/Capacitor.h
new file mode 100644
index 0000000..de1e830
--- /dev/null
+++ b/oop2w6/Capacitor.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "IComponent.h"
+
+class Capacitor : public IComponent {
+private:
+ double capacity;
+ bool bIsElectrolitic; // electrolytic but misspelled
+
+public:
+ Capacitor(double capacity, bool isElectrolitic);
+ virtual double getValue();
+ virtual bool isElectrolitic();
+};
+