Re: Searching for a notion
Stefan Ram wrote:
?out? is a field of the class ?java.lang.System?,
?println? is a method of the object ?java.lang.System.out?.
Both classes and objects each can have fields and methods.
Fields and methods of a class are called ?static?,
fields and methods of an object are called ?non-static? (or so).
Is there a supernotion for both classes and objects that
means something like
Unlike Bo I'm going to assume that you want a notation here, not Java. I
know a little UML.
Objects are bound to classes by putting a colon between the class name
and the object name. The whole thing is often underlined too. Objects
go in boxes that look like classes but their notation is much simpler.
+--------------------+
| myButton:JButton |
| ---------------- |
+--------------------+
Something like that. If I had to put something in place of ?? on your
diagram, I'd probably put "A UML Notation" meaning the box itself.
I.e., I'd be describing UML, not a program or design. But I don't know
if that's what your after. As far as I know, classes and objects in UML
don't mix, they use a different notation. You have to indicate class
attributes and instance attributes on the class notation, not the object
notation. (Class attributes are underlined, btw.)
You might know all this already, but this is the only answer I can think
of that makes sense to me. Sorry if I missed your point.