User's Guide


Creating the class STCalculator

After you define the application, the next step is to define a class within the application STCalculatorApp. This new class will contain the Smalltalk code to implement the calculator. You can create this class from the Applications Browser:

  1. Select (Object) in the classes pane.
  2. From the Classes menu, select Add > Subclass.
  3. Type STCalculator. As before, you might have to rename the class if STCalculator already exists.

    The following window appears:
    Calculator class

  4. Select subclass and select OK.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]