Objects and SQL
Page 3 of 5

Executing Methods from the Object Inspector

Without methods, an object is just plain old data. Cloudview's Object Inspector lets you view an object's methods (and the methods belonging to any of an object's superclasses) and to execute methods that do not take any parameters.

Execute an Object's Methods

  1. Select CITY=JBMSTours.serializabletypes.City under Selected Objects.

Cloudview allows you to execute methods with no parameters from this window by selecting the method name and clicking Execute.

The methods defined in JBMSTours.serializabletypes.City appear in the right-hand window.

  1. Select the getAirport() method and click Execute.

    Santiago's airport code, "SCL," appears in the bottom right-hand window.

  2. Select any other method that takes no argument, and click Execute.

View the Superclass's Methods.

JBMSTours.serializabletypes.City is a subclass of java.lang.Object. You can view (and execute, if appropriate) methods defined in the superclass.

  1. In the pop-up menu in the top right-hand window, select Object.

The public methods of java.lang.Object appear.

  1. Close the Object Inspector window.