Managing the Methods in a Class

Using Class Builder, you can easily manage the methods defined by your class. Class Builder assists you in adding a new method, adding a method based on an existing definition, modifying a method, and deleting a method.

To display the methods in your class

  1. Start Class Builder and make sure your class is selected by Class Builder. For information on how to do this, see Starting Class Builder.

  2. Click the Methods tab in Class Builder. The Methods list displays the methods that are currently defined by your class. (Depending on the current settings for Class Builder, this list may be filtered. For more information, see Setting Class Builder Options.)

To add a new method

  1. Click Add. In the Add Method dialog box, enter the information for the method:
  2. Click Add.

To add a method based on an existing definition

  1. Select a method from the Member Methods list and click Clone. The Clone Method dialog box displays the information for the selected method, which is the basis for the new method.

  2. Replace the name in the Method Name box with the name of the new method. Modify the remaining selections as needed.

  3. Click Add.

To modify an existing method definition

  1. Select the method from the Member Methods list and click Modify.

  2. In the Modify Method dialog box, modify the information for the method and then click Modify.

To delete a method that has already been declared