And the concept that helps the object as accessories are the operations and interfaces. An operation is a behavior offered by an object that is known to the outside user. The action of sending request to an object is equivalent to the action of invoking an operation on an object. This operation may cause some changes in the encapsulated state of the object. Generally, interface is a collection of operations offered by that object. The three models mentioned above are same with this definition.
Object itself can be inherited by its behavior. The inheritance concept in object might be come true various ways. Through the inheritance of interface, CORBA and EJB do this. And COM model does this by object aggregation or containment.
Object has life time that can be subjected under its properties or controlled by outer policy. During the incarnated state of object, it can retain its status information or does not possess its data despite of its active state. Depending on this properties object can be divided by state and stateless object. And also, to sustain data out of its lifetime, object can use other repository for its persistency.
As result, including that object a model of entities or concept, four things mentioned above - identity, interfaces, inheritance, lifetime- can be fundamental concept.
No comments:
Post a Comment