#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(); };