Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1478 :

Posted: Wed May 06, 2015 3:35 pm
by dangelob
In this question the correct answer is B but maybe I've not understand something.

The answer say
It will compile if class BankAccount is marked abstract.
but we have

Code: Select all

Account acct = new BankAccount();
and, by definition, an abstract class can never be instantiated.

Is it correct?

Regards

Re: About Question enthuware.ocajp.i.v8.2.1478 :

Posted: Wed May 06, 2015 6:42 pm
by admin
You are right. This is a mistake. The option has been changed to "It will compile if class BankAccount provides an implementation for getId method."

thank you for your feedback!
Paul.