下载此文档

Java程序设计英文版课件:ch6 Access Control.ppt


文档分类:IT计算机 | 页数:约25页 举报非法文档有奖
1/25
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/25 下载此文档
文档列表 文档介绍
*
Chapter 6
Access Control
*
 Why Java support Access Control
Machine Language
Assembly language
*
 Why Java support Access Control
“separating the things that change from the things that stay the same.”
*
 Why Java support Access Control
Access Control
“separating the things that change from the things that stay the same.”
*
 Why Java support Access Control
Public
Protected
Private
Package
import
Access Control
*
Package: the library unit
Import Statement
*
Package: the library unit
.java
Only one public class
class
class
.class
.class
.class
compilation unit
public class: There can be one and there can be only one in each compilation unit.
public class name: the same name as the file (including capitalization, but excluding the .java filename extension).
additional classes: support main public class.
*
Package: the library unit

library


If you use a package statement, it must appear as the first noncomment in the file.
Note that the convention for Java package names is to use all lowercase letters, even for intermediate words.
*
Package: the library unit





*
Package: the library unit
Package
\net\mindview\simple\
C:\DOC\JavaT\net\mindview\simple\
C:\DOC\JavaT\net\mindview\simple\
Java interpreter
CLASSPATH
.class file
directory

Java程序设计英文版课件:ch6 Access Control 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数25
  • 收藏数0 收藏
  • 顶次数0
  • 上传人窝窝爱蛋蛋
  • 文件大小2.55 MB
  • 时间2021-12-07