On a class diagram, a dashed line with an open triangle represents: A. association B. generalization C. Refinement D. dependency E. composition Is it refinement? What is refinement? thanks, Ramdhan YK
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
This is a dependency. This is also called a realization such as an interface. An association would be represented as a dashed line in a class diagram conceptual perspective.
Hi Todd, In java architect exam sample questions, they have given answer as refinement and thats the reason why i started wondering what is this refinement? do you have any idea? thanks, Ramdhan YK
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
It is indeed a Refinement. It is represented by open triangle i.e. <--------- From Rational docs: "A refine relationship is a stereotyped relationship that connects two or more model elements at different semantic levels or development stages. It represents a fuller specification of something that that has already been specified at a certain level of detail."
Hi Allan, Then how is dependency shown? I beleive that <------- represents dependency. Can you please let me know what is the differrence between dependency and refinement. thanks, Ramdhan YK
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
If they are dtereotyped dependies, then the non-stereotyped should be addressed as 'dependency' instead of 'refinement' and for the above question the answer must be dependency, b'cos they never say whether its stereotyped or not. thanks, Ramdhan YK
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
On a class diagram, a dashed line with an open triangle represents: A. association = ______________ (solid line) B. generalization = ______________|> (solid line w/ empty tri) C. Refinement = ??? D. dependency = ---------------> (dotted line w/ open tri) E. composition = _______________<> (solid line w/ filled diamond My answer would be: D - Dependency. ------------------ ===== ITGal =====
Hi IT Gal, You gotta change your name first according to Javaranch Naming Conventions. Secondly, you must have read all the above posts, Allan says Refinement is a "STEREOTYPED" dependency. soem thing like <<refinement>> <------------------- Ramdhan YK
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
a bit of art, as a gift, that will fit in a stocking