This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Interface" Watch "Interface" New topic
Author

Interface

shree vijay
Ranch Hand

Joined: Sep 18, 2000
Posts: 208
Hi,
Consider the following stmt:
If a class implements a listener interface, it only has to overload the methods it uses
Is this statement correct. Shouldn't it say it only has to implement the methods it uses? Is the answer true. ( It is from one of the mocks.)
------------------
Regards,
Shree


Regards,<BR>Shree
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4092
first of all it is worded wrong. second, it is a false statement either way. when you implement an interface you have to provide implementation off all its methods. That is why we have Adapter class(so we only implement the method(s) we need).


SCJP
shree vijay
Ranch Hand

Joined: Sep 18, 2000
Posts: 208
Thanks,
Shree
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Interface
 
Similar Threads
Extending RequestProcessor
interface
Is hasmoreElements() abstract method in interface Enumeration?
regarding interface
Home and Remote interface