\[quote\] Possible Duplicate:
When should I use static methods in a class and what are the benefits? \[/quote\]I'm working in PHP right now.I'm working on two groups of Functions.I have a class which consists of Date Handling Functions.In this class I have no need for properties as each function/method is more or less a utility. As such I have made my class' functions all static.I have a couple questions from here.1) What benefits are there from using Static methods? I understand that there is lower processing overhead because there is not an Object. I've also heard this is negligible (depending).2) What other types of functions/methods would be good candidates for "static" besides utilities?Thanks
When should I use static methods in a class and what are the benefits? \[/quote\]I'm working in PHP right now.I'm working on two groups of Functions.I have a class which consists of Date Handling Functions.In this class I have no need for properties as each function/method is more or less a utility. As such I have made my class' functions all static.I have a couple questions from here.1) What benefits are there from using Static methods? I understand that there is lower processing overhead because there is not an Object. I've also heard this is negligible (depending).2) What other types of functions/methods would be good candidates for "static" besides utilities?Thanks