SharkTooth
Programmer
I was going to make a class that contained static methods that can be used in our apps including the web server. I have a concern though. My understanding is if i us a class that contains a static field and I change the value of the field then someone else accesses the class the filed will contain the new value.
On a web server:
If I have a Postoffice class that contains a SendMail method that uses a field "_mailServer" and I set the field equal to: "123.234.567" and another user showed up from a different desktop and does not change the "_mailServer" field it will remain the same value I set it to.
Is this right?
On a web server:
If I have a Postoffice class that contains a SendMail method that uses a field "_mailServer" and I set the field equal to: "123.234.567" and another user showed up from a different desktop and does not change the "_mailServer" field it will remain the same value I set it to.
Is this right?