astro.ex10.model
Class PhysicalQuantity
java.lang.Object
astro.ex10.model.PhysicalQuantity
public class PhysicalQuantity
- extends java.lang.Object
|
Field Summary |
private java.lang.String |
unit
|
private double |
value
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private double value
unit
private java.lang.String unit
PhysicalQuantity
public PhysicalQuantity()
PhysicalQuantity
public PhysicalQuantity(double value,
java.lang.String unit)
getValue
public double getValue()
setValue
public void setValue(double value)
getUnit
public java.lang.String getUnit()
setUnit
public void setUnit(java.lang.String unit)