I have a method in my class that does nothing.
public class SpecialCheckingAccount extends BankAccount
{
public void deductWithdrawalFees()
{}
}
That method is only there because BankAccount has it as an abstract method. BankAccount calls deductWithdrawalFees() every time someone makes a withdrawal. It's supposed to deduct a withdrawal fee.
The SpecialCheckingAccount class represents a special checking account that doesn't have a withdrawal fee.
I was under the impression every method should have a javadoc. How do you javadoc a method like this?
EDIT: deductWithdrawalFees() in the BankAccount class (the abstract superclass) has Javadoc ("Deduct the fees associated with making a deposit from the balance") but I feel that it doesn't quite apply to an empty implementation, where nothing is technically deducted, and the fee is nonexistent. Thus I don't think inheriting the javadoc would really be an answer to this question.