aboutsummaryrefslogtreecommitdiff
path: root/oop2w6/Capacitor.cpp
blob: a298ce2b0545680864f2bc0025848a68a0a4f35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "Capacitor.h"

Capacitor::Capacitor(double capacity, bool isElectrolitic) {
	this->capacity = capacity;
	this->bIsElectrolitic = isElectrolitic;
}

double Capacitor::getValue() {
	return capacity;
}

bool Capacitor::isElectrolitic() {
	return bIsElectrolitic;
}

void Capacitor::accept(Visitor& visitor) {
	visitor.visit(*this);
}