determining which verb to use for method names in Java

后端 未结 7 2121
半阙折子戏
半阙折子戏 2021-01-30 23:02

I understand that naming conventions are important for a number of reasons, most having to do with making your code more readable and easier to integrate into larger projects, e

7条回答
  •  囚心锁ツ
    2021-01-30 23:26

    Do not forget to use this verbs "is, has or can" for boolean methods, such as: isOn(), isFull(), and so on.

提交回复
热议问题