-
Notifications
You must be signed in to change notification settings - Fork 3
R500
Leon Starr edited this page Feb 3, 2023
·
3 revisions
Lifecycle specified pattern of behavior for exactly one Class
Class behavior pattern is specified by zero or one Lifecycle
By definition, a Lifecycle defines the common behavior on all instances a Class.
A Class, may exhibit such limited behavior (a single state, for example) that it does not warrant the specification of a Lifecycle. So while we can imagine a Lifecycle on every Class, in practice we build them only for Classes with interesting behavior.
Since a Class is defined as a set of things with the same behavior, it stands to reason that a Class can specify at most one Lifecycle.
Copyright © 2021-2023 Leon Starr