Is there a rule of thumb for when to code a static method vs an instance method?

前端 未结 13 1504
暖寄归人
暖寄归人 2021-02-04 17:19

I\'m learning Java (and OOP) and although it might irrelevant for where I\'m at right now, I was wondering if SO could share some common pitfalls or good design practices.

相关标签:
13条回答
  • 2021-02-04 18:20

    This thread looks relevant: Method can be made static, but should it? The difference's between C# and Java won't impact its relevance (I think).

    0 讨论(0)
提交回复
热议问题