views:

33

answers:

1

Hi all,

I'm writing a method which calculates a user's phone recharge credit expires within n months. I couldn't think of a meaningful name. At the moment, it is called getCreditExpiresInNMths(); What would you name it?

Hope you don't think it is a silly question, I think a good method name is important. :)

Sarah

+4  A: 

Maybe something like this:

public Money calculatePhoneRechargeCredits(int numMonthsUntilExpiration);
duffymo
Yes, the parameter name is almost as important as the method name, in this case.
Jordan
Thanks both of you. I got it. Sorry I didn't explain the problem well.
sarahTheButterFly