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