A little bit confusion about enthuware.ocajp.i.v8.2.1478
Posted: Tue Oct 27, 2015 1:56 pm
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 )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.