Is it acceptable to mix static and non static methods in one class?
问题 I have a relatively simple question, and although there are many posts about it on Google, I cannot find a single one that simply answers the question. So the short question is "Is it acceptable to mix static and non static methods in one class?". I guess I am really asking "is it good practice to stick with one type of method", or "are there things to consider when using both". For example, If I was building a class to cope with food in my fridge, which of the following (or what else) would