|
Re: Implements when extending implementation
|
Posted: Jun 9, 2003 1:50 AM
|
|
If the class AccountEnquiry is not going to override the methods required to implement its own version of the Transaction interface, then you should not add "implements Transaction" to the class declaration statement.
I would concede this is an area of style rather than substance, however here is my opinion on the subject.
Even if it does override the implementation given in the super class there is no need to restate that it implements Transaction, because that is already the case. Stating that the class implements Transaction neither changes its behaviour nor does it add any real clarity or value to a programmer who understands inheritance. You don't need to do it, so don't bother! John
|
|