Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
local: only allow access to the class itself, subject to members of the class itself is accessed;
protected: permitted extension class itself and its access;
const: divided into two types: global, instance of
among them,
Global const: namely, assigned at the time of declaration, after can not be modified;
instace of const: Use only be declared const, the assignment occurs in the new () in