Advertisement
xi_arma

Main Program for Bank Account

Nov 28th, 2024
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | Source Code | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.  
  4.         BankAccount account = new BankAccount(12345, "John Doe"); // accountNumber, accountHolderName
  5.  
  6.         account.deposit(1000.0); // amount parameter
  7.         account.withdraw(500.0); // amount parameter
  8.         account.displayAccountInfo();
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement