What two changes, made independently, will enable the code to compile?
A.
Change the signature of Account to: public class Account.
B.
Change the signature of CheckingAccount to: public abstract CheckingAccount
C.
Implement private methods for deposit and withdraw in CheckingAccount.
D.
Implement public methods for deposit and withdraw in CheckingAccount.
E.
Change Signature of checkingAccount to: CheckingAccount implements Account.
F.
Make Account an interface.
Explanation:
Compiler say:
– Der Typ CheckingAccount muss die übernommene abstrakte
Methode Account.deposit(double) implementieren
– Der Typ CheckingAccount muss die übernommene abstrakte
Methode Account.withdraw(double) implementieren
ODER
Typ CheckingAccount als abstract definieren
B, D. Alright!
+1
B
F
Can’t extends Interface.