Inheritance diagram for sosc::CreditCard:

Protected Methods | |
| CreditCard (final String num, final String typ) | |
| boolean | checkDigits (final int[] digits) |
Definition at line 7 of file CreditCard.java.
|
||||||||||||
|
The constructor for the credit card class sets the values for number and type by making a call to the constructor from the Validatable class.
Definition at line 17 of file CreditCard.java. |
|
|
checkDigits() performs the actual validation algorithm. For a an english version of the algorithm go to the following link: http://www.cs.queensu.ca/home/bradbury/checkdigit/
Definition at line 29 of file CreditCard.java. References sosc::Validatable::number. |
1.2.15