We've got a project that used several classes and I wanted to know when is it appropriate to use Static methods within that class? For instance, we have a class called Users. It has properties and methods that hold user information along with add/edit/delete functions as well. But we also have "smaller" classes like Statuses, which all it does is add, edit, delete Statuses. I think it's overkill to have to create an object just to add a status evertime:
so I was thinking of making those Static instead. But really didn't know if it's appropriate or correct to do so.
Thoughts?
Code:
Statuses oStatus = new Statuses()
oStatus.AddNewStatus(params)
so I was thinking of making those Static instead. But really didn't know if it's appropriate or correct to do so.
Thoughts?