What is the difference between a member variable and a local variable? -


What is the difference between member variables and a local variable?

Are they the same?

All this is very abstract, though. Here is a C # example:

  class program {static void Main ()} {// This is a local variable, its lifestyle / lecture area is determined by Phu Fu; }} Square Foo {// This is a member variable - a new instance of this variable will be created for each // new instance of // fu. The life span of this variable is equal to the frequency of "this" // fu . Int bar; }  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -