The development environment allows you to categorize methods. You can use method categories to organize the list of methods defined by a class. For example, VA Smalltalk uses category names that identify which application the method comes from. Also, category names in VA Smalltalk end with either API or Internal. You are free to use and package any methods categorized as API. Methods categorized as Internal, however, are not part of the official Application Programming Interface for that object.You or your team might want to develop a strategy for categorization. For example, a categorization scheme might include categories such as Accessing, Printing, Testing, and User Interface. It is also possible not to use categories at all.
1. In the Applications Browser, select the class String. Ensure that the browser is set to instance methods.
2.
3. In the pop-up menu, type STUG-Examples; then select OK. This category will explain that the method comes from the examples in this guide.
4. Select the method convertToNumber.
6. Categorize the methods in STCalculator as follows:
1. Select the class STCalculator.
2. Add the category STUG-Examples. This time when you select Add from the Categories menu, you will see a list dialog including STUG-Examples. Choose this category then select OK
![]() |