ØUsed to expose or hide the details/attributes in a class
§Public
–A declaration that is accessible to all classes
§Protected
–A declaration that is accessible to only to the class itself and its subclasses
§Private
–A declaration that is accessible to only to the class itself
Public
可以被所有的类访问
Protected
只能被自己和子类访问
Private
只能被自己访问