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.
A little bit confusion about enthuware.ocajp.i.v8.2.1478
Moderators: Site Manager, fjwalraven
- 
				klhlubek
 - Posts: 7
 - Joined: Mon Oct 12, 2015 9:58 am
 - Contact:
 
A little bit confusion about enthuware.ocajp.i.v8.2.1478
- 
				admin
 - Site Admin
 - Posts: 10443
 - Joined: Fri Sep 10, 2010 9:26 pm
 - Contact:
 
Re: A little bit confusion about enthuware.ocajp.i.v8.2.1478
Explanation has been updated to make it clearer.
thank you for your feedback!
			
			
									
									
						thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 16 guests