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 subclass
4. Select subclass and select OK.
That’s it. You’ve created your first Smalltalk class.
calculator applications browser
Last modified date: 03/26/2020