nerdexam
Oracle

1Z0-804 · Question #6

Given: What two changes, made independently, will enable the code to compile?

The correct answer is B. Change the signature of CheckingAccount to: public abstract CheckingAccount D. Implement public methods for deposit and withdraw in CheckingAccount. Methode Account.deposit(double) implementieren Methode Account.withdraw(double) implementieren Typ CheckingAccount als abstract definieren

RAC Architecture

Question

Given:

What two changes, made independently, will enable the code to compile?

Exhibit

1Z0-804 question #6 exhibit

Options

  • AChange the signature of Account to: public class Account.
  • BChange the signature of CheckingAccount to: public abstract CheckingAccount
  • CImplement private methods for deposit and withdraw in CheckingAccount.
  • DImplement public methods for deposit and withdraw in CheckingAccount.
  • EChange Signature of checkingAccount to: CheckingAccount implements Account.
  • FMake Account an interface.

How the community answered

(25 responses)
  • B
    76% (19)
  • C
    8% (2)
  • E
    4% (1)
  • F
    12% (3)

Explanation

Methode Account.deposit(double) implementieren Methode Account.withdraw(double) implementieren Typ CheckingAccount als abstract definieren

Topics

#abstract classes#interfaces#Java implementation#compilation fixes

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice