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
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)- B76% (19)
- C8% (2)
- E4% (1)
- F12% (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.
