Methods declared in an interface are automatically public and abstract, so the method definition in the class that implements must be declared public, as default access is more restricted
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30
Question Answered as of 1 Year Ago by
DavidKroukamp
and
JamesCherrill Never thought about this before, bit it is a bit weird - you declare a method with default scope in an interface, implement that in a class also with default scope, and its an error. :-O
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30