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

前端 未结 13 1506
暖寄归人
暖寄归人 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).

提交回复
热议问题