User's Guide
To define a class by using an existing class as a template, do the
following:
- Open an Applications Browser, Classes Browser, Application Browser, or
Hierarchy Browser. These are standard browsers.
- Select a containing application and a class whose definition closely
matches the class you are creating. The class's definition is
displayed in the description pane.
- Edit the superclass name and the class definition so it defines the new
class. For example, to define a subclass of Object named
TestClass, change the displayed class definition so it reads:
Object subclass: #TestClass
instanceVariableNames: ' '
classVariableNames: ' '
poolDictionaries: ' '
- Select Save from the Edit menu. This adds the
new class to the containing application.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]