public class Resistor extends ElectricityComponent
Modifier and Type | Field and Description |
---|---|
protected double |
r |
Constructor and Description |
---|
Resistor(double r) |
Modifier and Type | Method and Description |
---|---|
double |
getOhm()
Calculate resistance in ohms.
|
getVolt
public double getOhm()
ElectricityComponent
getOhm
in class ElectricityComponent