C ++ static member learning notes

xiaoxiao2021-03-06  17

Static Data Member Data 1. A static member only one and shared by all objects 2. Static data must be initialized before the application, format is the type name class name :: Data Name = initial value 3. Static data can be declared as Private and public Static function member data 4. You can only access or modify static data member data members 5. You can call it through the object call or by the class name (no object).

Every point is very short, you don't have to explain, you will experience it.

转载请注明原文地址:https://www.9cbs.com/read-45069.html

New Post(0)