class diagram question

From: Passero (yanongena_at_pandora.be)
Date: 12/19/03


Date: Fri, 19 Dec 2003 12:04:51 GMT

When i have a class that uses a static method of another class, do i have to
draw a link between those classes in my class diagram or do I only need to
draw the link when i'm using an instance of a class in my class? Is it the
same when i parse an object of another class as a parameter but still don't
use it as an atribute?

In java it would be something like this:

public void myFunction()
{
     Myclass.doMethod(aClassOfMine)
}

aClassOfMine is an instance of a self-written class and MyClass is another
class.
In MyClass i only use aClassOfMine in the method doMethod so do i have to
draw a link between the class that calls doMehod and MyClass and do i also
have to draw a link between MyClass and ClassOfMine ?



Relevant Pages

  • Re: class diagram question
    ... > When i have a class that uses a static method of another class, ... > do i have to draw a link between those classes in my class ... In MyClass i only use aClassOfMine in the method ...
    (comp.object)
  • Re: classless OOP, was Re: a roguelike for Forth
    ... cell var text ... \ Now, implement the two methods, draw and init: ... button new Constant foo ... myclass defines draw ...
    (comp.lang.forth)
  • Re: class diagram question
    ... > draw a link between those classes in my class diagram or do I only need to ... > aClassOfMine is an instance of a self-written class and MyClass is another ...
    (comp.object)
  • Re: class diagram question
    ... > draw a link between those classes in my class diagram or do I only need to ... > aClassOfMine is an instance of a self-written class and MyClass is another ... Interaction Diagram for any behavioral collaboration between different ... swimlanes with a specific object identifier. ...
    (comp.object)