Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. /**
  2.   * SavingsAccountRunner.java
  3.   */
  4. public class SavingsAccountRunner {
  5.     public static void main(String args[])
  6.     {
  7.         SavingsAccount act = new SavingsAccount(123456789, "Jim", "Jones", 150.24);
  8.        
  9.         System.out.println(act.toString());
  10.        
  11.         //Access method statically
  12.         SavingsAccount.modifiyInterestRate(0.05);
  13.        
  14.         act.calculateMonthlyInterest();
  15.         act.deposit(25.40);
  16.         act.withdraw(50.24);
  17.        
  18.         System.out.println(act.toString());
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement