|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPayment
public class Payment
Class representing a payment on an account.
Constructor Summary | |
---|---|
Payment(java.lang.String account,
double amount)
Create a new Payment object. |
Method Summary | |
---|---|
java.lang.String |
getAccount()
Retrieve account ID |
double |
getAmount()
Retrieve payment amount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Payment(java.lang.String account, double amount)
Precondition: account is two letters followed by four digits.
Precondition: amount > 0.
account
- Account ID. Two letters followed by four digits.amount
- Payment amount. Must be greater than zero.Method Detail |
---|
public java.lang.String getAccount()
public double getAmount()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |