Variable declarations into static words when the program exits to release space And all is a static class, non-static objects all For example, Class A { Public static void Fun1 () {}; Public void Fun2 () {}; } Use Fun1 A.F directly un1 () is ok, if you practical Fun2 must an object instance
CodePudding user response:
CodePudding user response:
Yes, static non-static call level, is a static object level, non-static is the instance level, static resource will have been occupied, so use less as far as possible,
CodePudding user response:
The difference between static and non-static, the static modifier can be used directly, non-static methods are new to use,
CodePudding user response:
The module in the static static class is vb.net
CodePudding user response:
Static drops, singleton is the static
CodePudding user response:
Static members are already defined at compile time, non-static member is just can use after the air runtime object generated, # 5 floor singleton is not static, idlers under the model of single case, when the singleton object is not initialized, and cannot use its members,
CodePudding user response:
What is your problem? If technical summary, can go to send to your blog