diff options
Diffstat (limited to 'oop2w6/Capacitor.h')
-rw-r--r-- | oop2w6/Capacitor.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/oop2w6/Capacitor.h b/oop2w6/Capacitor.h new file mode 100644 index 0000000..11efe23 --- /dev/null +++ b/oop2w6/Capacitor.h @@ -0,0 +1,16 @@ +#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(); + virtual void accept(Visitor&); +}; + |