Replace Magic Number with Symbolic constant

 

You have a literal number with a particular meaning.

Create a constant, name it after the meaning, and replace the number with it.

posted @ 2007-05-15 16:48  南守拥  阅读(220)  评论(0编辑  收藏  举报