A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.

  • 静态变量与类整体相关联而不是与具体的一个类的实例相关联。非静态变量则拥有一个与每个对象实例相关联的唯一的值。
目录 查词历史