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.
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
posted
0
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).