oopuebung/uebung07/src/quantities/plain/VelocityUnit.java
2025-06-04 18:27:10 +02:00

14 lines
441 B
Java

package quantities.plain;
public class VelocityUnit extends Unit{
public VelocityUnit(String name, double baseFactor) {
super(name, baseFactor);
}
public static final VelocityUnit KMH = new VelocityUnit("kmh", 1000/3600); // 1/3.6
public static final VelocityUnit MPH = new VelocityUnit("mph", 1609.344/3600);
public static final VelocityUnit METER_PER_SECOND = new VelocityUnit("meter per second", 1);
}