just for clarifications since the definitions are not 100% specific on this: I'd like to know, what exactly satisfies an association between classes in UML and what is considered a reference we need to watch out for when looking for fragments of SOLID-priniciples or design patterns.
Does this include anything like fields, return types, arguments, instances of objects of another class? In SE we only defined how to specifically determine coupling between classes. But I'm at a loss how to easily identify an association or reference between classes. ( Is coupling some kind of association? )
Assuming following code from Task 5:
Code: Alles auswählen
public interface Expression {
final static int MajorVersion = 1;
final static int MinorVersion = 0;
Constant eval(Map<String, Constant> values);
<T> T accept(ExpressionVisitor<T> visitor);
}
We have associations/references to following classes:
Constant.java, since it is a return type
Map.java, since it is an argument
ExpressionVisitor.java, since it is an argument.
Is this correct? Thank you very much.