Posts

Showing posts from April, 2025

ONLINE BANK

Image
 ONLINE BANKING SYSTEM class Account {     private String username;     private String password;     private double balance;     public Account(String username, String password) {         this.username = username;         this.password = password;         this.balance = 0.0;     }     public boolean authenticate(String password) {         return this.password.equals(password);     }     public String getUsername() {         return username;     }     public double getBalance() {         return balance;     }     public void deposit(double amount) {         if (amount > 0)             balance += amount;     }     public boolean withdraw(double amount) {       ...