正在加载图片...
Principle 4:Least privilege (cont.) Expose minimal functionality in interfaces of objects,classes, packages,applications. in code: -not public int x; but private int x; not public void mO but package void m() Least privilege example: -Standard coding standard not to use import java.lang.*; but always import java.lang.String; -CSE825 11CSE825 11 Principle 4: Least privilege (cont.)  Expose minimal functionality in interfaces of objects, classes, packages, applications.  in code: ─ not public int x; ─ but private int x; ─ not public void m() ─ but package void m()  Least privilege example: ─ Standard coding standard not to use import java.lang.*; but always import java.lang.String;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有