Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the differences between instance specification and object

Tags:

uml

In UML there are two related concepts:

  1. instance specification
  2. object

What is the differences between instance specification and object?

like image 333
user2019510 Avatar asked Jun 12 '13 07:06

user2019510


People also ask

What is the difference between instance and object?

An instance is a specific representation of an object. An object is a generic thing while an instance is a single object that has been created in memory. Usually an instance will have values assigned to it's properties that differentiates it from other instances of the type of object.

What is an instance specification?

An instance specification specifies the existence of an entity in a modeled system and completely or partially describes the entity. The description may include: The classification of an entity by one or more classifiers of which the entity is an instance.

What is an instance object?

Object instance is a specific occurrence of an object. For example, a specific mail message document is an instance.


2 Answers

  1. In most of the cases, think of instance and object are the same thing. If you really interested with the difference between them, then...

  2. We need to firstly know the relationship between "class" and classifier, the former is concrete, the latter is abstract.

    UML2.5 / 11 Structured Classifiers / Classes Class is the concrete realization of EncapsulatedClassifier and BehavioredClassifier. The purpose of a Class is to specify a classification of objects and to specify the Features that characterize the structure and behavior of those objects.

  3. I would say, an object is an instance of class; an InstanceSpecification is the instance of a classifier. Quoted from UML 2.5

    The InstanceSpecification may represent: Classification of the instance by one or more Classifiers. If the only Classifier specified is abstract, then the InstanceSpecification only partially describes the instance.

  4. "object" is actually not an concept of UML, the InstanceSpecification is a more abstract concept and all its semantics applies to "object".

Hope that helps.

like image 172
milesma Avatar answered Oct 10 '22 07:10

milesma


Instance Specification is a concept used for modeling the internals of UML.

An user of UML should not worry about this. Implementors of CASE tools in the other hand are aware of this concept since they need it to make the sintatic rules of the language be applied in their tools.

Object is a concept that is more OO than UML itself. An object is an instance of a class.

like image 24
gustavogbc Avatar answered Oct 10 '22 07:10

gustavogbc