Understand the member variables in java, local variables

  First let us understand what variables are, in my view, is used to store a variable name or reference value, such as age, gender, class, student number, ID number, and so on. Of course, for different objects have different values. Variables also has its own attributes, such as integer, string type, floating-point, and so on, the basic data types and reference data types can be. There are a class attributes and methods, the difference between local variables and member variables lose member variable classes is used throughout the active area inside the class. Local variables are variables which means that the method, in which only the scope of the method.

Guess you like

Origin www.cnblogs.com/yindong2019/p/11780599.html