📜  什么是静态变量 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:06.588000             🧑  作者: Mango

代码示例1
The static variable is used to refer to the common property of all objects 
(that is not unique for each object), 
e.g., The company name of employees, college name of students, etc. 
Static variable gets memory only once in the class area at the time of 
class loading. Using a static variable makes your program more 
memory efficient (it saves memory). Static variable belongs to the class 
rather than the object.