mmayoub

Bank, Loanable interface

Aug 10th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. /*
  2.  * Loanable Interface
  3.  * That is the customer requirements from us
  4.  * Do not change it without customer confirmation
  5.  */
  6. package BankInterfaces;
  7.  
  8. import BankExceptions.BankLoanException;
  9.  
  10. public interface Loanable {
  11.     /*
  12.      * Take a loan from the bank return true only if customer don't have loan
  13.      */
  14.     boolean giveLoan(double sum, int payments) throws BankLoanException;
  15.  
  16.     /*
  17.      * pay one payment for the loan
  18.      */
  19.     boolean loanPaymentReturn();
  20.  
  21.     /*
  22.      * return a string with monthly loan return plan
  23.      */
  24.     String loanReturnByMonth();
  25. }
Add Comment
Please, Sign In to add comment