php    php100   android
當前位置:首頁 » Eclipse教學 »

Eclipse - 創建Java接口 評論   編輯

Opening the New Java Interface wizard

The New Java Interface wizard can be used to create a new java interface. There are many ways of opening this wizard:

  • Clicking on the File menu and selecting New > Interface
  • Right clicking in the package explorer and selecting New > Interface
  • Clicking on the class drop down button () in the tool bar and selecting Interface ()

Before bringing up the New Java Interface wizard, if possible, select the package in which the interface is to be created so that the wizard can automatically fill in the package name for you.

Using the New Java Interface wizard

Once the java interface wizard comes up:

  • Ensure the source folder and package are correct
  • Enter the interface name
  • Click on the Add button to select the interfaces this interface should extend
  • Select the Generate comments check box if you like comments to be generated
  • Click on the Finish button

Eclipse - 創建Java接口

Viewing the newly created java interface

The newly created interface should appear in the Package Explorer view and a java editor instance that allows you to modify the new interface should appear in the editor area.

貢獻/合作者

正在開放中...
 

評論(0條)

  • 還冇有評論!