misspell?The problem with the code is that since Foo extends FooBase, Foo gets the static method bar() from FooBar(FooBase) in its scope and since Foo also says it implements Bar interface, it needs to have an instance method bar() with the same signature.
About Question enthuware.ocajp.i.v8.2.1493 :
Moderators: Site Manager, fjwalraven
-
- Posts: 39
- Joined: Sat Jul 29, 2017 1:04 pm
- Contact:
About Question enthuware.ocajp.i.v8.2.1493 :
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1493 :
Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 25
- Joined: Fri Aug 04, 2017 12:21 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1493 :
this might be silly but just making a mention :
first option has : Add this method in class Foo - public void bar(){ } ;
why is the semicolon there at the end ?
even without ; it will be a wrong option only. but just thought of mentioning.
first option has : Add this method in class Foo - public void bar(){ } ;
why is the semicolon there at the end ?
even without ; it will be a wrong option only. but just thought of mentioning.
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1493 :
Extra semicolon is not a problem. It is ignored by the compiler.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 20 guests