Page 1 of 1

A little bit confusion about enthuware.ocajp.i.v8.2.1478

Posted: Tue Oct 27, 2015 1:56 pm
by klhlubek
It will compile if getId method in PremiumAccount is replaced with: public String getId(){ super.getId(); }
You cannot use super keyword to call a method defined in the super interface.
Yes, in this context it is right, but it would be surely better if you write, that abstract methods can not have a body, because this would be the general problem in this question. ( But this is only a tipp from myself )

Re: A little bit confusion about enthuware.ocajp.i.v8.2.1478

Posted: Tue Oct 27, 2015 9:50 pm
by admin
Explanation has been updated to make it clearer.
thank you for your feedback!