JavaScript is disabled on your browser.
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
C
D
G
P
S
T
C
charge(double)
- Method in class
CreditCard
Charges the passed amount to the card.
CreditCard
- Class in
<Unnamed>
This class encapsulates a credit card and maintains information about it.
CreditCard(int, String)
- Constructor for class
CreditCard
Initializes this object with the passed number and name, and the default limit.
D
DEFAULT_LIMIT
- Static variable in class
CreditCard
The default limit for new credit cards.
G
getBalance()
- Method in class
CreditCard
Returns the card's balance.
getLimit()
- Method in class
CreditCard
Returns the card's limit.
getName()
- Method in class
CreditCard
Returns the name on this card.
P
pay(double)
- Method in class
CreditCard
Decreases the balance on the card by the amount passed.
S
setLimit(double)
- Method in class
CreditCard
Sets the new limit for this credit card.
T
toString()
- Method in class
CreditCard
Returns the
toString
representation of this object.
C
D
G
P
S
T
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes