使用 class定义类别 Account account new Account()i System.out. print1n("帐戶 account. getAccountNumber ( System. out. println("f5: account getBalance ( account new Account(123-4567100.0) account deposit(1000.0) System. out. println("k: " account getAccountNumber()); System. out. println("A: " account getBalance())i使用class定义类别 Account account = new Account(); System.out.println("帐戶: " + account.getAccountNumber()); System.out.println("余額: " + account.getBalance()); account = new Account("123-4567", 100.0); account.deposit(1000.0); System.out.println("帐戶: " + account.getAccountNumber()); System.out.println("余額: " + account.getBalance());