Comment #83
# of behaviors for a object
| Status: | Open | Start: | 12/02/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Clause: | 6.1 |
Page and Line: | 21:23 |
|
Description
An object is a computational entity which has a state and a behavior
Does an object have only one behavior? or behaviors?
History
Updated by Shugo Maeda 279 days ago
Yuki Sonoda wrote:
Does an object have only one behavior? or behaviors?
"a behavior" means a set of methods in the specification.
However, I'm not sure whether the word "behavior" should be used as a countable noun or not.
Updated by Bjorn De Meyer 273 days ago
Shugo Maeda wrote:
"a behavior" means a set of methods in the specification. However, I'm not sure whether the word "behavior" should be used as a countable noun or not.
It feels a bit ackward to do so, but I think it's passable.
However, I think behavior should have it's own definition, not just a note as it is now on p2-15 .
Updated by Shugo Maeda 272 days ago
Thanks for your comment.
Bjorn De Meyer wrote:
Shugo Maeda wrote:
"a behavior" means a set of methods in the specification. However, I'm not sure whether the word "behavior" should be used as a countable noun or not.
It feels a bit ackward to do so, but I think it's passable.
The NCITS J20 DRAFT of ANSI Smalltalk Standard says:
An object responds to a message by executing a method. Each method is identified by an associated method selector. A behavior is the set of methods used by an object to respond to messages.
Our description came from it.
However, I think behavior should have it's own definition, not just a note as it is now on p2-15 .
It is defined on p.5:32-33.
Updated by Bjorn De Meyer 272 days ago
Sorry, I missed that when I commented here. All this being the case, I think this sentence can stay as it is.