static for many years

static class is great vernacular

static representation does not belong to an instance, belongs to the class members can be modified, can also be modified method

For example, the definition of man

class Person{

    static long totalNum; // total number of human beings, does not belong to a specific example of a person belonging to the class of variable human

}

Scarlet will use the static understanding of the

https://blog.csdn.net/touziss/article/details/81865100

 

https://www.cnblogs.com/dolphin0520/p/3799052.html

Guess you like

Origin www.cnblogs.com/ycliud201410/p/11291940.html