J
Jay
Why are there static methods in C#. In C++ static was applied to data only
(I believe) and it meant that the static piece of data was not a part of the
object but only a part of the class (one copy of data as opposed to multiple
instances of the class)
C# is now applying the static concept to methods. Why?, I thought that only
one copy of the methods were loaded into memory not matter how many
instances were created. Is this different in C#? A static method seems to
mean that the method cannot access any variable or method outside of the
object.
When static is applied to data, if methods access the private data, the data
is required to be static.
Please explain Static vs Private. Thank You all so much!
Have a happy 4th!
(I believe) and it meant that the static piece of data was not a part of the
object but only a part of the class (one copy of data as opposed to multiple
instances of the class)
C# is now applying the static concept to methods. Why?, I thought that only
one copy of the methods were loaded into memory not matter how many
instances were created. Is this different in C#? A static method seems to
mean that the method cannot access any variable or method outside of the
object.
When static is applied to data, if methods access the private data, the data
is required to be static.
Please explain Static vs Private. Thank You all so much!
Have a happy 4th!