Thursday, 1 June 2017

what of the following is defined, when an object acts and reacts in terms of state changes and message passing?

what of the following is defined, when an object acts and reacts in terms of state changes and message passing?


  • identity of an object
  • behavior of an object  (Right Answer)
  • state of an object
  • attributes of an object
Explain--->

Behavior

The behavior of an object is how it acts and reacts to messages sent to it by other objects. Behavior is typically implemented within an object as methodsthat are defined in its class. "Behavior is how an object acts and reacts, in terms of its state changes and message passing; the outwardly visible and testable activity of an object"


No comments:

Post a Comment