Java Access Permissions

xiaoxiao2021-03-06  62

Java Access Permissions

(

By huihoo.com allen

Types of the same class in the same class in the subclass of subcaters in different packages in different packages in different packets of different packages in different packets.

Additional classes in the default package. Does not include subclasses, do not include other package int size;

All classes of public, including other packages. Public int size;

Protected all subclasses, excluding other packages protected int size;

Private Class, does not include other class private int size;

Static Static Int Size;

Final int size = 5 is not changed during FINAL operation;

转载请注明原文地址:https://www.9cbs.com/read-84288.html

New Post(0)