Creating a Method

To create a new method, constructor, or main() in a class or interface:

  1. In the Workbench or a browser, select the class or interface to which you want to add the method.
  2. Click the New Method button newmethUp.gif (1064 bytes) in the toolbar or select Add Method from the class's pop-up menu.  This will launch the Add Method SmartGuide.
  3. Follow the SmartGuide instructions to create a new method.

When you exit the SmartGuide, the new method is created and compiled.

ngrelc.gif (533 bytes)
Projects and Other Program Elements

ngrelc.gif (533 bytes)
Creating a Class
Creating an Interface
Adding Classes and Methods from the Repository to the Workspace
Creating a Field