正在加载图片...
Members of interface Interface Verbose int SiLEnt=0 int TERSE= 1: 命名常量 int NORMAL= 2 intⅤ ERBOSE=3: void set Verbose(int level);方法声明 f int get Verbosity; 化 现Members of Interface • 接口中可以声明以下成员: (1) 域 (2) 方法 (3) 嵌套类和嵌套接口 • 接口中的成员都是public的,不能指定其它的访问 控制修饰符 • 接口中的域默认是static final的,必须显式初始化 • 接口中的方法只能提供方法头声明,不能提供实现, 且除abstract外,不能使用其它修饰符 Interface Verbose{ int SILENT = 0; int TERSE = 1; int NORMAL = 2; int VERBOSE = 3; void setVerbose(int level); int getVerbosity(); } 命名常量 方法声明
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有