Actually you cannot subclass a Behavior from another Behavior; IOW, you cannot use "extends" to define a behavior. The main thing is that a behavior definition needs to be serializable, and when deserialized it needs to come back as the exact same "thing" so it cannot have any free variables, including the superclass object (at least for now.)
An example is the Elected behavior module, that provides a way to choose one participant as the leader. In the default world, the BitcoinTracker and the FlightTracker uses it.
~
yoshiki — discord
I represent a deck of cards.
A Croquet Microverse world is "nothing but" a Deck of Cards, into which we could "add" another deck of cards by "Load" and later "Save" the resulting new deck. discord