Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
10 lines (7 loc) · 364 Bytes

File metadata and controls

10 lines (7 loc) · 364 Bytes
Copy raw file
Download raw file
Edit and raw actions

接口 Interface

接口是抽象方法的集合。一个类实现一个或多个接口,因此继承了接口的抽象方法.

接口的特点

  • 不能实例化
  • 没有构造体
  • 所有方法都是抽象的 (abstract).同时也是隐式的 public static. 也就是说声明时, 可以省略 public static.
  • 只能含有声明为 final static 的 field
Morty Proxy This is a proxified and sanitized view of the page, visit original site.