Last updated at 7:17 pm UTC on 6 January 2022
subclass of Object. The only subclass in the standard image is ClassDescription.
Object subclass: #Behavior
instanceVariableNames: 'superclass methodDict format'
A link to a MethodDictionary is kept.
answers with a set of the message selectors in the method dictionary.
does the same but includes the selectors of the superclasses.
answers the set of all instances of the receiver
From the class comment:
My instances describe the behavior of other objects. I provide the minimum state necessary for compiling methods, and creating and running instances. Most objects are created as instances of the more fully supported subclass, Class, but I am a good starting point for providing instance-specific behavior (as in Metaclass).
Behavior is also used by code which creates objects which are not normal instances of a Class, such as Prototypes.