except that there is a class called Object in java from which all other classes are derived.
many times objects and instances are used to denote the same thing i.e. A class that has been given some space in memory
However, in the Java runtime each class, interface, array, primitive and the keyword void will have its code also available in the form of an object which is an instance of java.lang.Class. Whenever we compile any Java file, the compiler will embed a public, static, final field named class, of the type java.lang.Class, in the emitted byte code. This field can be accessible like this:
java.lang.Class class = Myclass.class;
You might also want to do a search on this forum.
Originally posted by Stan James:
Just to poke Ilja with a stick now & then ... The FAQ points out that "a link is an instance of an association" which is maybe a different case than "object is an instance of a class" or maybe not. If "Association" or "RUP" are classes in a meta-model, then a link or a process are "concrete" instances. You might have to allow for instantiating objects in your brain instead of computer memory to make this work.
Yes, if you like to call RUP a class and the resulting process an object, that would work. I don't think I typically do that, though...
[ June 07, 2005: Message edited by: Stan James ]