Static class members should call with class name...
why an static class members should call with class name?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jul 9, 2013, 6:28 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 7:46 AM EDT
A static class can be used as a convenient container for sets of methods that just operate on input parameters and do not have to get or set any internal instance fields. For example, in the .NET Framework Class Library, the static System.Math class contains methods that perform mathematical operations, without any requirement to store or retrieve data that is unique to a particular instance of the Math class. That is, you apply the members of the class by specifying the class name and the method name, as shown in the following example.
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 9, 2013, 7:54 AM EDT
http://www.dotnetperls.com/static-class