public class Account
{
static int accountNum;
static int nextAccountNum = 112200;
static double balance;
public static void main(String args[])
{
Account checkingAccount = new Account(1500.00);
Account savingAccount = new Account(1000.00);
Account moneyMarketAccount = new Account(500.00);
checkingAccount.getAccountNumber();
savingAccount.getAccountNumber();
moneyMarketAccount.getAccountNumber();
}
public Account(double bal)
{
balance = bal;
accountNum = nextAccountNum;
nextAccountNum++;
}
}
실행할 때마다 반환 변수가 없습니다. 내가 본 것은 완성 된 텍스트입니다. 도움을 찾고 있습니다변수를 반환하는 데 문제가 발생했습니다.
? 인쇄물? – Keppil