Hi,
I Want to know which one is preferred while coding to use Static Methods or normal instances, I prefer to use static if they where few but if there was many of them I start to get some doubts
Ex
EmployeeCollection EmpLst = EmployeeManager.GetAllEmployees();
Or
EmployeeManager EmpMgr = new EmployeeManager();
EmployeeCollection EmpLst = EmpMgr.GetAllEmployees();
if the EmployeeManager Has Many methods (selects deletes updates) is it ok to make them all static.
and if it was Normal instance. wouldn't be a drawback if the object is initiated every time specially if GetAllEmployees() is heavily used.
What is the better approach to use?