c# - Whats the difference between Field and Variable? -
i've been using visual studio develop c++ application. i'm not expert in c++, neither other languages derived c c#. so, studying visual studio's symbology found reference same symbol saying "field or variable". correct if i'm wrong please, sounds me pretty "method or function" definition.
in c++ there no methods, instead commonly called functions. so, in c++ there no fields, it's particularity c# works variable except should private , needs accessed "get" call. wrong?
not variables fields. local variables of method variables, not fields. parameters method, property, constructor, or anonymous method variables, not fields.
not fields variables. const
member technically field, not variable.
Comments
Post a Comment