0
   

What does following means: "This is different from an association, where an attribute of the for...?

 
 
Reply Sat 11 Feb, 2012 01:28 pm
What does following means? I don't especially get what does means "This is different from an association, where an attribute of the former is an instance of the latter. " Does it mean that you instantiate( create ) an object of the class of the former one
Here is the source and text from which I got my problem:
" One class depends on another if the latter is a parameter variable or local variable of a method of the former. This is different from an association, where an attribute of the former is an instance of the latter. " - http://en.wikipedia.org/wiki/Class_diagram
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,290 • Replies: 4
No top replies

 
maxdancona
 
  1  
Reply Sat 11 Feb, 2012 01:50 pm
@alvoutila,
This is talking about a dependency as compared to an association.

A dependency just means that one class uses (i.e. depends on) another class. In other words if class A depends on class B, then class A can't work unless class B works.

All associations are dependencies but not all dependencies are associations.

In general (and speaking as a Java Programmer) any Class that is in an "include" statement is a dependency. Usually the fields of a class are its associations.
alvoutila
 
  1  
Reply Sat 11 Feb, 2012 02:18 pm
@maxdancona,
Do you mean that "include" statement is on the line between two classes in Class Diagram? But usually there are only "binding", "Access", "Import", "Merge", "Instantiation", "Substitution" etc. statements. I didn't find any "include" statement in my class diagram of Visual Paradigm for UML - program.
maxdancona
 
  1  
Reply Sat 11 Feb, 2012 02:30 pm
@alvoutila,
Oops. I meant import (I guess the problem with using IDEs).

I take it you are in a class for UML. Have you had a programming class yet?

alvoutila
 
  1  
Reply Sat 11 Feb, 2012 03:18 pm
@maxdancona,
Yes. Programming 1 and now I have Perusopintojen harjoitustyö ~ Basic project work
0 Replies
 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » What does following means: "This is different from an association, where an attribute of the for...?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.06 seconds on 05/07/2024 at 11:57:40