File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Product and Other Certifications
Association and Dependency
Joined: Apr 16, 2002
Mar 02, 2005 21:17:00
anyone knows the distiction between these two? when do we need these two? and importantly, how do we implement these two relationships in codes? any examples for the clarification?
I would appreciate your help. Thanks.
Joined: Nov 07, 2003
Mar 03, 2005 23:03:00
You might post your question at:
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Joined: Dec 11, 2002
Mar 04, 2005 07:10:00
Association means two classes have relationship. For example Employees report to Manager , Students registered a Course etc... For example we
class Manager mDirectManager ;
Dependency means one class depends on another one. They do not have to be associated. The dependency can be a parameter type etc.
public void anyMethod(Class AnyOtherClass b)
if the AnyOtherClass removed its getName() method , the AnyClass should be changed. Except in the anyMethod the AnyClass does not use AnyOtherClass.
This is an dependency.
Hope this help. You can find detail information about this from Apply UML and
I agree. Here's the link:
subject: Association and Dependency
concurrent use of database
Button Click Event
SSLHandshakeException: certificate expired
Equal immutable objects
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014