C# Programming
12-15-2009, 10:54 PM
Hi All,
My teacher stated - "Using public variables in a class will allocate memory for the lifetime of an application. So we should use private variables and use Get/Set." I believe that this is false and the get/set actually add some memory.
Forgetting what is better programming practice, is he right about the memory?
Signed,
Puzzled in C#
My teacher stated - "Using public variables in a class will allocate memory for the lifetime of an application. So we should use private variables and use Get/Set." I believe that this is false and the get/set actually add some memory.
Forgetting what is better programming practice, is he right about the memory?
Signed,
Puzzled in C#