| Author |
problem with implementing interface
|
Tarun Kumar Agrawal
Greenhorn
Joined: Jun 29, 2011
Posts: 17
|
|
ImportJava.java:
Test.java:
On Compiling, i am getting following error:
What's wrong in the code? Thanks in advance..
|
 |
Piyush Joshi
Ranch Hand
Joined: Jun 10, 2011
Posts: 207
|
|
did you read the error description, it clearly states that you are trying to assign weaker access privileges to methods while implementing them.
by default methods declared in interfaces have public access, when you implement an interface method it must be declared public.
|
Piyush
|
 |
 |
|
|
subject: problem with implementing interface
|
|
|