الرجوع
تسجيل الدخول

What will be displayed when the displayBalance() method is called after an Account object is instantiated with the default constructor?

public class Account {
    private double balance;
    Account() {
        this(1000.0);
    }
    Account(double balance) {
        this.balance = balance;
    }
    void displayBalance() {
        System.out.println("The balance is: " + this.balance);
    }
}