C++ Notes 006: Supplements About Classes

Supplement to the class:

A class is a data type (an alias for a fixed-size memory block). Defining a class is an abstract concept. It will not allocate memory to you. When a variable is defined with a data type, memory will be allocated. Just like the char type, it does not allocate memory as a type, and only allocates memory when a character variable is defined.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325072260&siteId=291194637