previous | start | next

Self Check

  1. Suppose we enhance the BankAccount class so that each account has an account number. Supply a documentation comment for the constructor BankAccount(int accountNumber, double initialBalance)
  2. Why is the following documentation comment questionable?
    /**
    Each account has an account number.
    @return the account number of this account.
    */
    int getAccountNumber()

previous | start | next