aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Resistor.h
blob: abeea406de83f1b748e258c244c571d61026a637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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&);
};