static method (class method) と instance method の使い分け
Java に関わった話ではないと思い
One rule-of-thumb:
ask yourself
"does it make sense to call this method,
even if no Obj has been constructed yet?"
If so, it should definitely be static.
Java に関わった話ではないと思い
One rule-of-thumb:
ask yourself
"does it make sense to call this method,
even if no Obj has been constructed yet?"
If so, it should definitely be static.