Object modeling represents the static structure of objects and their relationships using object diagrams. An object diagram shows instances of classes, their attributes and values, and relationships between objects through links representing associations, generalizations, or aggregations. Object diagrams are useful for understanding object behavior and relationships in a system, as well as its static view and for forward and reverse engineering.
2. ObjectModeling
Object Modeling gives static structure of objects and their relationship
to one another.These are useful for demonstration of system to customers.
Object Modeling is represented by using object diagram.
3. ObjectDiagram
It is used to model instances of things contained in class diagram.
It is a diagram that shows sets of objects and their relationship.
It also represents static structure of system.
4. Purpose Of Object Diagram
It shows object relationships in a system.
Understand object behavior and their relationships.
Shows static view of a system.
Forward and reverse engineering.
5. Terms And Concepts Of Object Diagram
1. Object :
It is instance of a class and each object is represented by a
rectangle which contains name of object and its class name underlined and
separated by a colon.
6. 2. ObjectWith Attributes :
As with classes we can list object attributes in separate
compartment. Each object attributes must have values assigned to them.
7. 3. Active Objects :
Objects that have their own processes that control their
activities are called as active objects.They are represented by a symbol of object
with thick border lines.
4. MultipleObjects :
It is represented by a symbol as object if attributes of objects
are not important
8. 5. Links :
These are the relationship between objects. Links are
instances of association. It is represented by solid line.
Relationship between objects can also be generalization or aggregation.
Generalization Symbol Aggregation Symbol
Objects that fulfill more than 1 role can be self linked.
9. Object Instances :
Object Instance is also called as class object that it is
nothing but instance of a class.Objects are rendered as instance usually on
object diagrams.
Example :
Following diagram shows instance of a class order and of
class customer.
The Order class has number of instances o1,o2,o3. It can
also be represented by multiple objects if attributes are not important.