access permission
Public authority public
Protection of rights protected
Private rights private
Screen capture clip time : 2019/7/24 22:40
C ++, the difference between class and a struct
Struct in C ++ can also be used to define the class, but it is the difference between class, class default access to private, and struct default permissions for the public
Member property privatization
The members of the attribute set to private, you can control their access rights, for write permission, we can check the validity of data
#pragma once // prevent duplicate file header contains