Package com.ccprog3
Class Money
java.lang.Object
com.ccprog3.Money
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Money
Constructor forMoney
class- Parameters:
amount
- Amount of money- Throws:
IllegalArgumentException
- Amount cannot be negative
-
-
Method Details
-
getAmount
public float getAmount()Gets the amount of money- Returns:
- The amount of money
-
toString
-