Reputation: 1470
In UML there are two related concepts:
What is the differences between instance specification and object?
Upvotes: 10
Views: 2816
Reputation: 715
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.
Upvotes: 1
Reputation: 1591
In most of the cases, think of instance and object are the same thing. If you really interested with the difference between them, then...
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.
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.
"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.
Upvotes: 6