2.6 Storage Classes

Storage classes govern the lifetime, linkage, and treatment of objects and variables in C++. A given object can have only one storage class. The following sections discuss the C++ storage classes for data: automatic, static, register, and external.